Commit e4b32d23 authored by Dan Pascu's avatar Dan Pascu

Removed unused fallback icon

parent ea445bc3
...@@ -1101,8 +1101,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin): ...@@ -1101,8 +1101,7 @@ class ChatWindow(base_class, ui_class, ColorHelperMixin):
return return
# TODO: if we are in a conference, find the contact and icon -Saul # TODO: if we are in a conference, find the contact and icon -Saul
uri = '%s@%s' % (message.sender.uri.user, message.sender.uri.host) uri = '%s@%s' % (message.sender.uri.user, message.sender.uri.host)
icon = session.icon or session.default_user_icon sender = ChatSender(message.sender.display_name, uri, session.icon.filename)
sender = ChatSender(message.sender.display_name, uri, icon.filename)
content = message.body if message.content_type=='text/html' else QTextDocument(message.body).toHtml() content = message.body if message.content_type=='text/html' else QTextDocument(message.body).toHtml()
session.chat_widget.add_message(ChatMessage(content, sender, 'incoming')) session.chat_widget.add_message(ChatMessage(content, sender, 'incoming'))
session.remote_composing = False session.remote_composing = False
......
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