no message

This commit is contained in:
overtake 2018-09-07 19:59:02 +01:00
parent 3dc3a8d655
commit 368ecfb3a8
3 changed files with 7 additions and 3 deletions

View File

@ -196,10 +196,10 @@ public func addChannelMembers(account: Account, peerId: PeerId, memberIds: [Peer
|> mapToSignal { result -> Signal<Void, NoError> in
account.stateManager.addUpdates(result)
account.viewTracker.forceUpdateCachedPeerData(peerId: peerId)
return .complete()
return .single(Void())
}
} else {
return .complete()
return .single(Void())
}
}
|> switchToLatest

View File

@ -25,7 +25,7 @@ public func ensuredExistingPeerExportedInvitation(account: Account, peerId: Peer
if let current = current as? CachedChannelData {
return current.withUpdatedExportedInvitation(invitation)
} else {
return current
return CachedChannelData().withUpdatedExportedInvitation(invitation)
}
})
}

View File

@ -71,6 +71,7 @@ public enum ReportReason: Equatable {
case spam
case violence
case porno
case copyright
case custom(String)
}
@ -83,6 +84,9 @@ private extension ReportReason {
return .inputReportReasonViolence
case .porno:
return .inputReportReasonPornography
case .copyright:
//TODO UPDATE API REASON
return .inputReportReasonOther(text: "Copyright")
case let .custom(text):
return .inputReportReasonOther(text: text)
}