Commit 38357ad9 authored by Saul Ibarra's avatar Saul Ibarra

Show P2P icon if contact is a Bonjour neighbour

parent 5474a729
...@@ -939,8 +939,12 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -939,8 +939,12 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
self.audio_connection_label.setPixmap(self.unknown_connection_pixmap) self.audio_connection_label.setPixmap(self.unknown_connection_pixmap)
self.audio_connection_label.setToolTip(u"Couldn't negotiate ICE") self.audio_connection_label.setToolTip(u"Couldn't negotiate ICE")
elif audio_info.ice_status == 'disabled': elif audio_info.ice_status == 'disabled':
self.audio_connection_label.setPixmap(self.unknown_connection_pixmap) if blink_session.contact.type == 'bonjour':
self.audio_connection_label.setToolTip(u'ICE is disabled') self.audio_connection_label.setPixmap(self.direct_connection_pixmap)
self.audio_connection_label.setToolTip(u'Peer to peer')
else:
self.audio_connection_label.setPixmap(self.unknown_connection_pixmap)
self.audio_connection_label.setToolTip(u'ICE is disabled')
else: else:
self.audio_connection_label.setPixmap(self.unknown_connection_pixmap) self.audio_connection_label.setPixmap(self.unknown_connection_pixmap)
self.audio_connection_label.setToolTip(u'Negotiating ICE') self.audio_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