mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +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
|
|> 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
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user