Correctly parse delay in groupchats

This commit is contained in:
Philipp Hörist 2018-12-28 11:54:54 +01:00
parent 8094cadbea
commit 34306921ed
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ class Message:
groupchat = event.mtype == 'groupchat'
# Determine timestamps
delay_jid = self._con.get_own_jid().getDomain()
if groupchat:
delay_jid = event.jid
else:
delay_jid = self._con.get_own_jid().getDomain()
timestamp = parse_delay(event.stanza, from_=delay_jid)
if timestamp is None:
timestamp = time.time()