Add toast on user unmute in voice chats

This commit is contained in:
Ilya Laktyushin 2021-03-22 17:03:21 +05:00
parent 274ead6a50
commit fa2275155d
4 changed files with 3516 additions and 3510 deletions

View File

@ -6255,6 +6255,7 @@ Sorry for the inconvenience.";
"VoiceChat.YouCanNowSpeak" = "You can now speak";
"VoiceChat.YouCanNowSpeakIn" = "You can now speak in **%@**";
"VoiceChat.UserCanNowSpeak" = "**%@** can now speak";
"VoiceChat.MutedByAdmin" = "Muted by Admin";
"VoiceChat.MutedByAdminHelp" = "Tap if you want to speak";

View File

@ -1219,6 +1219,8 @@ public final class VoiceChatController: ViewController {
let _ = strongSelf.call.updateMuteState(peerId: peer.id, isMuted: false)
f(.default)
strongSelf.presentUndoOverlay(content: .voiceChatCanSpeak(text: presentationData.strings.VoiceChat_UserCanNowSpeak(entry.peer.displayTitle(strings: strongSelf.presentationData.strings, displayOrder: strongSelf.presentationData.nameDisplayOrder)).0), action: { _ in return true })
})))
} else {
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_MutePeer, icon: { theme in