Browse Source

fix(ui): only add chat message for call once

Fix #5370
reviewable/pr5372/r1
Anthony Bilinski 7 years ago
parent
commit
5f48fd4e10
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 3
      src/widget/form/chatform.cpp

3
src/widget/form/chatform.cpp

@ -374,9 +374,6 @@ void ChatForm::onAvInvite(uint32_t friendId, bool video) @@ -374,9 +374,6 @@ void ChatForm::onAvInvite(uint32_t friendId, bool video)
headWidget->createCallConfirm(video);
headWidget->showCallConfirm();
lastCallIsVideo = video;
auto msg = ChatMessage::createChatInfoMessage(tr("%1 calling").arg(displayedName),
ChatMessage::INFO, QDateTime::currentDateTime());
insertChatMessage(msg);
emit incomingNotification(friendId);
}
}

Loading…
Cancel
Save