Group chats update

This commit is contained in:
Ali
2020-11-17 20:31:25 +04:00
parent 0e3445983c
commit 4336fa0d05
39 changed files with 1038 additions and 2316 deletions

View File

@@ -154,16 +154,16 @@ private enum SelectivePrivacyPeersEntry: ItemListNodeEntry {
case let .peerItem(_, theme, strings, dateTimeFormat, nameDisplayOrder, peer, editing, enabled):
var text: ItemListPeerItemText = .none
if let group = peer.peer as? TelegramGroup {
text = .text(strings.Conversation_StatusMembers(Int32(group.participantCount)))
text = .text(strings.Conversation_StatusMembers(Int32(group.participantCount)), .secondary)
} else if let channel = peer.peer as? TelegramChannel {
if let participantCount = peer.participantCount {
text = .text(strings.Conversation_StatusMembers(Int32(participantCount)))
text = .text(strings.Conversation_StatusMembers(Int32(participantCount)), .secondary)
} else {
switch channel.info {
case .group:
text = .text(strings.Group_Status)
text = .text(strings.Group_Status, .secondary)
case .broadcast:
text = .text(strings.Channel_Status)
text = .text(strings.Channel_Status, .secondary)
}
}
}