diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 0d317332f..e95f7fe93 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -408,7 +408,8 @@ void ChatForm::onAvPeerTimeout(int FriendId, int) void ChatForm::onAvMediaChange(int FriendId, int CallId, bool video) { - Q_UNUSED(FriendId) + if (FriendId != f->friendId || CallId != callId) + return; if (video) {