From 9ba1d4cf41a14a8d0510fbbf973edff44e84bfb0 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sun, 19 Oct 2014 11:32:31 +0200 Subject: [PATCH] Fix ChatForm::onAvMediaChange not checking callId/friendId May help with #458 --- src/widget/form/chatform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {