comparison frontends/src/quick_frontend/quick_chat.py @ 2051:1dc3c7680ea0

quick_frontend (chat): fixed hash generation, tuple was causing trouble when used with unicode() because of dbus.String
author Goffi <goffi@goffi.org>
date Sun, 28 Aug 2016 19:42:48 +0200
parents aff318d4a786
children ed33cd382bf9
comparison
equal deleted inserted replaced
2050:046449cc2bff 2051:1dc3c7680ea0
224 return u"Chat Widget [target: {}, type: {}, profile: {}]".format(self.target, self.type, self.profile) 224 return u"Chat Widget [target: {}, type: {}, profile: {}]".format(self.target, self.type, self.profile)
225 225
226 @staticmethod 226 @staticmethod
227 def getWidgetHash(target, profiles): 227 def getWidgetHash(target, profiles):
228 profile = list(profiles)[0] 228 profile = list(profiles)[0]
229 return (profile, target.bare) 229 return profile + "\n" + target.bare
230 230
231 @staticmethod 231 @staticmethod
232 def getPrivateHash(target, profile): 232 def getPrivateHash(target, profile):
233 """Get unique hash for private conversations 233 """Get unique hash for private conversations
234 234