Video chat improvements

This commit is contained in:
Isaac
2024-10-05 20:18:25 +04:00
parent 9e1dc11997
commit a6dffb4e3e
6 changed files with 28 additions and 22 deletions

View File

@@ -1270,9 +1270,9 @@ final class VideoChatScreenComponent: Component {
if callState.networkState == .connected, let members = self.members {
idleTitleStatusText = environment.strings.VoiceChat_Panel_Members(Int32(max(1, members.totalCount)))
} else if callState.scheduleTimestamp != nil {
idleTitleStatusText = "scheduled"
idleTitleStatusText = environment.strings.VoiceChat_Scheduled
} else {
idleTitleStatusText = "connecting..."
idleTitleStatusText = environment.strings.VoiceChat_Connecting
}
} else {
idleTitleStatusText = " "
@@ -1686,6 +1686,7 @@ final class VideoChatScreenComponent: Component {
transition: transition,
component: AnyComponent(VideoChatMicButtonComponent(
call: component.call,
strings: environment.strings,
content: micButtonContent,
isCollapsed: areButtonsCollapsed,
updateUnmutedStateIsPushToTalk: { [weak self] unmutedStateIsPushToTalk in