mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
no message
This commit is contained in:
parent
3dc3a8d655
commit
368ecfb3a8
@ -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
|
||||
|
||||
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user