mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Prevent adding the same address several times in the remote is composing list.
This commit is contained in:
parent
9691218514
commit
c327a60318
1 changed files with 6 additions and 3 deletions
|
|
@ -196,10 +196,13 @@ void ChatRoomPrivate::notifyChatMessageReceived (const shared_ptr<ChatMessage> &
|
|||
void ChatRoomPrivate::notifyIsComposingReceived (const Address &remoteAddress, bool isComposing) {
|
||||
L_Q();
|
||||
|
||||
if (isComposing)
|
||||
remoteIsComposing.push_back(remoteAddress);
|
||||
else
|
||||
if (isComposing) {
|
||||
auto it = find(remoteIsComposing.cbegin(), remoteIsComposing.cend(), remoteAddress);
|
||||
if (it == remoteIsComposing.cend())
|
||||
remoteIsComposing.push_back(remoteAddress);
|
||||
} else {
|
||||
remoteIsComposing.remove(remoteAddress);
|
||||
}
|
||||
|
||||
LinphoneChatRoom *cr = getCChatRoom();
|
||||
LinphoneAddress *lAddr = linphone_address_new(remoteAddress.asString().c_str());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue