Fix custom voice chat title display in status bar

This commit is contained in:
Ilya Laktyushin
2021-03-11 23:30:05 +04:00
parent adbfaee2ae
commit 8dc3973f4f

View File

@@ -322,7 +322,7 @@ public class CallStatusBarNodeImpl: CallStatusBarNode {
var displaySpeakerSubtitle = false
if let presentationData = self.presentationData {
if let voiceChatTitle = self.currentGroupCallState?.info?.title, !title.isEmpty {
if let voiceChatTitle = self.currentGroupCallState?.info?.title, !voiceChatTitle.isEmpty {
title = voiceChatTitle
} else if let currentPeer = self.currentPeer {
title = currentPeer.displayTitle(strings: presentationData.strings, displayOrder: presentationData.nameDisplayOrder)