Commit 0b277697 authored by Dan Pascu's avatar Dan Pascu

Fixed code to work with unicode display names from latest sipsimple API

parent 806e0a27
......@@ -135,7 +135,7 @@ class Blink(QApplication):
account = account_manager.get_account(account_id)
except KeyError:
account = Account(account_id)
account.display_name = data['display_name']
account.display_name = data['display_name'].decode('utf-8')
default_account = account
else:
default_account = account_manager.default_account
......
......@@ -410,7 +410,7 @@ class AddAccountDialog(base_class, ui_class):
def _initialize(self):
self.display_name = user_info.fullname
self.username = user_info.username.lower().replace(' ', '.')
self.username = user_info.username.lower().replace(u' ', u'.')
self.sip_address = u''
self.password = u''
self.verify_password = u''
......
......@@ -66,7 +66,7 @@ class XCAPSettingsExtension(XCAPSettings):
class AccountExtension(SettingsObjectExtension):
display_name = Setting(type=str, default=user_info.fullname, nillable=True)
display_name = Setting(type=unicode, default=user_info.fullname, nillable=True)
message_summary = MessageSummarySettingsExtension
msrp = MSRPSettingsExtension
nat_traversal = NATTraversalSettingsExtension
......
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