Mercurial > libervia-backend
changeset 1250:1f0ae61536aa
plugin XEP-0045: set the entity data "type" asap (userJoinedRoom is triggered before the join callback)
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 20 Oct 2014 15:09:37 +0200 |
parents | 3be9d8ab2e15 |
children | 51a85e8f599a |
files | src/plugins/plugin_xep_0045.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py Mon Oct 20 12:57:27 2014 +0200 +++ b/src/plugins/plugin_xep_0045.py Mon Oct 20 15:09:37 2014 +0200 @@ -128,7 +128,6 @@ self.host.bridge.roomJoined(room.roomJID.userhost(), [user.nick for user in room.roster.values()], room.nick, profile) room_jid_s = room.roomJID.userhost() - self.host.memory.updateEntityData(room.roomJID, "type", "chatroom", profile) self.clients[profile].joined_rooms[room_jid_s] = room if room.locked: #FIXME: the current behaviour is to create an instant room @@ -695,6 +694,7 @@ log.debug('receivedGroupChat: room=%s user=%s body=%s' % (room, user, body)) def userJoinedRoom(self, room, user): + self.host.memory.updateEntityData(room.roomJID, "type", "chatroom", self.parent.profile) if user.nick in self.__changing_nicks: self.__changing_nicks.remove(user.nick) else: