plugin XEP-0045: MUC joining refactoring:
- Join method is completely refactored so a room is now joined immediately, and MAM synchronisation happens in background. - Legacy history is not used anymore to simplify code. - Global simplification of the plugin, not more complicated states handling or message caching.
This commit is contained in:
parent
6cc536472c
commit
a55ef47b0a
3 changed files with 916 additions and 887 deletions
|
|
@ -1645,6 +1645,9 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
|||
else:
|
||||
client.mess_id2uid[(data["from"], message_id)] = data["uid"]
|
||||
|
||||
if getattr(message_elt, "_is_from_archive", False):
|
||||
extra["is_from_archive"] = True
|
||||
|
||||
# origin
|
||||
if not from_jid_bare in (client.jid.userhostJID(), client.server_jid):
|
||||
disco_infos = await G.host.memory.disco.get_infos(client, from_jid_bare)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -341,6 +341,8 @@ class XEP_0313(object):
|
|||
if delay_elt is not None:
|
||||
fwd_message_elt.addChild(delay_elt)
|
||||
|
||||
fwd_message_elt._is_from_archive = True
|
||||
|
||||
return fwd_message_elt
|
||||
|
||||
def queryFields(self, client, service=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue