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 |> mapToSignal { result -> Signal<Void, NoError> in
account.stateManager.addUpdates(result) account.stateManager.addUpdates(result)
account.viewTracker.forceUpdateCachedPeerData(peerId: peerId) account.viewTracker.forceUpdateCachedPeerData(peerId: peerId)
return .complete() return .single(Void())
} }
} else { } else {
return .complete() return .single(Void())
} }
} }
|> switchToLatest |> switchToLatest

View File

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

View File

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