don't show audio error when it's not an audio error. Fixes #8614

This commit is contained in:
Yann Leboulanger 2017-07-24 22:20:13 +02:00
parent f36860e37d
commit 2dedf38f51
1 changed files with 1 additions and 1 deletions

View File

@ -1348,7 +1348,7 @@ class Interface:
account = obj.conn.name
ctrl = (self.msg_win_mgr.get_control(obj.fjid, account)
or self.msg_win_mgr.get_control(obj.jid, account))
if ctrl:
if ctrl and obj.sid == ctrl.audio_sid:
ctrl.set_audio_state('error', reason=obj.reason)
@staticmethod