Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/quick_app.py @ 3101:ab7e8ade848a
plugin XEP-0045: added room statuses to metadata:
room statuses are now sent with other metadata on bridge signals, and saved in Room
instance. They give useful data on the room, for instance they can be used to know if a
full jid is used in this room.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 30 Dec 2019 20:44:02 +0100 |
parents | ab8be8f1c92d |
children | 7574f795bd1e |
comparison
equal
deleted
inserted
replaced
3100:cea52c9ddfd9 | 3101:ab7e8ade848a |
---|---|
857 self.setPresenceStatus(show, status, profile=profile) | 857 self.setPresenceStatus(show, status, profile=profile) |
858 return | 858 return |
859 | 859 |
860 self.callListeners("presence", entity, show, priority, statuses, profile=profile) | 860 self.callListeners("presence", entity, show, priority, statuses, profile=profile) |
861 | 861 |
862 def mucRoomJoinedHandler(self, room_jid_s, occupants, user_nick, subject, profile): | 862 def mucRoomJoinedHandler( |
863 self, room_jid_s, occupants, user_nick, subject, statuses, profile): | |
863 """Called when a MUC room is joined""" | 864 """Called when a MUC room is joined""" |
864 log.debug( | 865 log.debug( |
865 "Room [{room_jid}] joined by {profile}, users presents:{users}".format( | 866 "Room [{room_jid}] joined by {profile}, users presents:{users}".format( |
866 room_jid=room_jid_s, profile=profile, users=list(occupants.keys()) | 867 room_jid=room_jid_s, profile=profile, users=list(occupants.keys()) |
867 ) | 868 ) |
873 room_jid, | 874 room_jid, |
874 type_=C.CHAT_GROUP, | 875 type_=C.CHAT_GROUP, |
875 nick=user_nick, | 876 nick=user_nick, |
876 occupants=occupants, | 877 occupants=occupants, |
877 subject=subject, | 878 subject=subject, |
879 statuses=statuses, | |
878 profile=profile, | 880 profile=profile, |
879 ) | 881 ) |
880 | 882 |
881 def mucRoomLeftHandler(self, room_jid_s, profile): | 883 def mucRoomLeftHandler(self, room_jid_s, profile): |
882 """Called when a MUC room is left""" | 884 """Called when a MUC room is left""" |