Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 1133:7e6856902488
primivitus: fixed jid escaping for dynamic menus in one2one chat
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Aug 2014 21:32:23 +0200 |
parents | 8870417c8e8c |
children | 75025461141f |
comparison
equal
deleted
inserted
replaced
1132:4ab93557976e | 1133:7e6856902488 |
---|---|
134 if self.type == 'group': | 134 if self.type == 'group': |
135 self.host.addMenus(menu, C.MENU_ROOM, {'room_jid': self.target.bare}) | 135 self.host.addMenus(menu, C.MENU_ROOM, {'room_jid': self.target.bare}) |
136 game = _("Game") | 136 game = _("Game") |
137 menu.addMenu(game, "Tarot", self.onTarotRequest) | 137 menu.addMenu(game, "Tarot", self.onTarotRequest) |
138 elif self.type == 'one2one': | 138 elif self.type == 'one2one': |
139 self.host.addMenus(menu, C.MENU_SINGLE, {'jid': self.target}) | 139 self.host.addMenus(menu, C.MENU_SINGLE, {'jid': unescapePrivate(self.target)}) |
140 menu.addMenu(_("Action"), _("Send file"), self.onSendFileRequest) | 140 menu.addMenu(_("Action"), _("Send file"), self.onSendFileRequest) |
141 return menu | 141 return menu |
142 | 142 |
143 def setType(self, type_): | 143 def setType(self, type_): |
144 QuickChat.setType(self, type_) | 144 QuickChat.setType(self, type_) |