Software /
code /
verse
Comparison
plugins/archive.lua @ 427:fafb3639d4aa
plugins.archive: Remove compat for really old version of XEP-0313
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Dec 2018 17:34:46 +0100 |
parent | 413:41c67bf8c010 |
child | 428:bde804b01f28 |
comparison
equal
deleted
inserted
replaced
425:9f910529d8f0 | 427:fafb3639d4aa |
---|---|
40 local function handle_archived_message(message) | 40 local function handle_archived_message(message) |
41 | 41 |
42 local result_tag = message:get_child("result", xmlns_mam); | 42 local result_tag = message:get_child("result", xmlns_mam); |
43 if result_tag and result_tag.attr.queryid == queryid then | 43 if result_tag and result_tag.attr.queryid == queryid then |
44 local forwarded = result_tag:get_child("forwarded", xmlns_forward); | 44 local forwarded = result_tag:get_child("forwarded", xmlns_forward); |
45 forwarded = forwarded or message:get_child("forwarded", xmlns_forward); -- COMPAT XEP-0313 pre 2013-05-31 | |
46 | 45 |
47 local id = result_tag.attr.id; | 46 local id = result_tag.attr.id; |
48 local delay = forwarded:get_child("delay", xmlns_delay); | 47 local delay = forwarded:get_child("delay", xmlns_delay); |
49 local stamp = delay and parse_datetime(delay.attr.stamp) or nil; | 48 local stamp = delay and parse_datetime(delay.attr.stamp) or nil; |
50 | 49 |