Commit fb04cea9 authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed starting messages to single uri

parent d5b11861
...@@ -3538,7 +3538,12 @@ class ContactListView(QListView): ...@@ -3538,7 +3538,12 @@ class ContactListView(QListView):
def _AH_SendSMS(self, uri=None): def _AH_SendSMS(self, uri=None):
contact = self.selectionModel().selectedIndexes()[0].data(Qt.UserRole) contact = self.selectionModel().selectedIndexes()[0].data(Qt.UserRole)
session_manager = MessageManager() session_manager = MessageManager()
session_manager.create_message_session(uri.uri or str(contact.uri.uri)) try:
uri = uri.uri
except AttributeError:
uri = uri
session_manager.create_message_session(uri or contact.uri.uri)
def _AH_SendFiles(self, uri=None): def _AH_SendFiles(self, uri=None):
session_manager = SessionManager() session_manager = SessionManager()
......
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