Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0054.py @ 2581:395a3d1c2888
plugin XEP-0045: fixed joining workflow:
- room keep joining workflow state, and display warning when something is received at unexpected moment
- state is change immediatly when subject is received (which must be the last thing before live messages), avoiding timing issue if history storage in database is taking too much time
- user joined/left data are not saved anymore in history as it takes a lot of space for little interest. A future option may allow to re-enable it if needed.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 May 2018 17:11:47 +0200 |
parents | 26edcf3a30eb |
children | 56f94936df1e |
comparison
equal
deleted
inserted
replaced
2580:5e54afd17321 | 2581:395a3d1c2888 |
---|---|
143 # the current naive approach keeps a map between all jids | 143 # the current naive approach keeps a map between all jids |
144 # in persistent cache, then put avatar hashs in memory. | 144 # in persistent cache, then put avatar hashs in memory. |
145 # Hashes should be shared between profiles (or not ? what | 145 # Hashes should be shared between profiles (or not ? what |
146 # if the avatar is different depending on who is requesting it | 146 # if the avatar is different depending on who is requesting it |
147 # this is not possible with vcard-tmp, but it is with XEP-0084). | 147 # this is not possible with vcard-tmp, but it is with XEP-0084). |
148 # Loading avatar on demand per jid may be a option to investigate. | 148 # Loading avatar on demand per jid may be an option to investigate. |
149 client = self.host.getClient(profile) | 149 client = self.host.getClient(profile) |
150 for jid_s, data in client._cache_0054.iteritems(): | 150 for jid_s, data in client._cache_0054.iteritems(): |
151 jid_ = jid.JID(jid_s) | 151 jid_ = jid.JID(jid_s) |
152 for name in CACHED_DATA: | 152 for name in CACHED_DATA: |
153 try: | 153 try: |