Commit d5c13f1c authored by Dan Pascu's avatar Dan Pascu

Fixed showing ICE status when not available

parent 997f0e5a
...@@ -1792,6 +1792,9 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -1792,6 +1792,9 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
else: else:
self.audio_connection_label.setPixmap(self.pixmaps.unknown_connection) self.audio_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.audio_connection_label.setToolTip(u'ICE is disabled') self.audio_connection_label.setToolTip(u'ICE is disabled')
elif audio_info.ice_status is None:
self.audio_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.audio_connection_label.setToolTip(u'ICE is unavailable')
else: else:
self.audio_connection_label.setPixmap(self.pixmaps.unknown_connection) self.audio_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.audio_connection_label.setToolTip(u'Negotiating ICE') self.audio_connection_label.setToolTip(u'Negotiating ICE')
...@@ -1823,6 +1826,9 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -1823,6 +1826,9 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
else: else:
self.video_connection_label.setPixmap(self.pixmaps.unknown_connection) self.video_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.video_connection_label.setToolTip(u'ICE is disabled') self.video_connection_label.setToolTip(u'ICE is disabled')
elif video_info.ice_status is None:
self.video_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.video_connection_label.setToolTip(u'ICE is unavailable')
else: else:
self.video_connection_label.setPixmap(self.pixmaps.unknown_connection) self.video_connection_label.setPixmap(self.pixmaps.unknown_connection)
self.video_connection_label.setToolTip(u'Negotiating ICE') self.video_connection_label.setToolTip(u'Negotiating ICE')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment