From dfa697e0d7e55b4630dcd214aeaf9997440e8838 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Wed, 15 Feb 2023 15:33:56 +0100 Subject: [PATCH] Add all ChatConversation callbacks (delegates) --- .../Swift/Chat/Views/ChatConversationViewSwift.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift index af2426741..6fb3a39d4 100644 --- a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift +++ b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift @@ -529,6 +529,17 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll } } + func updateParticipantLabel(){ + let participants = chatRoom?.participants + participantsGroupLabel.text = "" + participants?.forEach{ participant in + if participantsGroupLabel.text != "" { + participantsGroupLabel.text = participantsGroupLabel.text! + ", " + } + participantsGroupLabel.text = participantsGroupLabel.text! + FastAddressBook.displayName(for: linphone_participant_get_address(participant.getCobject)) + } + } + func onCallClick(cChatRoom: OpaquePointer?) { let firstParticipant = ChatConversationViewModel.sharedModel.chatRoom?.participants.first let addr = (firstParticipant != nil) ? linphone_participant_get_address(firstParticipant?.getCobject) : linphone_chat_room_get_peer_address(cChatRoom);