Software / code / prosody
Comparison
plugins/mod_smacks.lua @ 12052:d17b8fcf11c7
mod_smacks: Clear resumption token from persistent storage on resumption
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 01 Dec 2021 20:13:08 +0100 |
| parent | 12051:c32ef09ab452 |
| child | 12053:03e9587fbfd2 |
comparison
equal
deleted
inserted
replaced
| 12051:c32ef09ab452 | 12052:d17b8fcf11c7 |
|---|---|
| 547 local old_session = old_session_registry:get(session.username, id); | 547 local old_session = old_session_registry:get(session.username, id); |
| 548 if old_session then | 548 if old_session then |
| 549 session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(old_session.h) }) | 549 session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(old_session.h) }) |
| 550 :tag("item-not-found", { xmlns = xmlns_errors }) | 550 :tag("item-not-found", { xmlns = xmlns_errors }) |
| 551 ); | 551 ); |
| 552 old_session_registry:set(session.username, id, nil); | |
| 552 else | 553 else |
| 553 session.send(st.stanza("failed", { xmlns = xmlns_sm }) | 554 session.send(st.stanza("failed", { xmlns = xmlns_sm }) |
| 554 :tag("item-not-found", { xmlns = xmlns_errors }) | 555 :tag("item-not-found", { xmlns = xmlns_errors }) |
| 555 ); | 556 ); |
| 556 end; | 557 end; |