mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add toast on user unmute in voice chats
This commit is contained in:
parent
274ead6a50
commit
fa2275155d
@ -6255,6 +6255,7 @@ Sorry for the inconvenience.";
|
|||||||
|
|
||||||
"VoiceChat.YouCanNowSpeak" = "You can now speak";
|
"VoiceChat.YouCanNowSpeak" = "You can now speak";
|
||||||
"VoiceChat.YouCanNowSpeakIn" = "You can now speak in **%@**";
|
"VoiceChat.YouCanNowSpeakIn" = "You can now speak in **%@**";
|
||||||
|
"VoiceChat.UserCanNowSpeak" = "**%@** can now speak";
|
||||||
|
|
||||||
"VoiceChat.MutedByAdmin" = "Muted by Admin";
|
"VoiceChat.MutedByAdmin" = "Muted by Admin";
|
||||||
"VoiceChat.MutedByAdminHelp" = "Tap if you want to speak";
|
"VoiceChat.MutedByAdminHelp" = "Tap if you want to speak";
|
||||||
|
@ -1219,6 +1219,8 @@ public final class VoiceChatController: ViewController {
|
|||||||
|
|
||||||
let _ = strongSelf.call.updateMuteState(peerId: peer.id, isMuted: false)
|
let _ = strongSelf.call.updateMuteState(peerId: peer.id, isMuted: false)
|
||||||
f(.default)
|
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 {
|
} else {
|
||||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_MutePeer, icon: { theme in
|
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.VoiceChat_MutePeer, icon: { theme in
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user