mod_message: Clarify purpose of username field in offline message event
authorKim Alvefur <zash@zash.se>
Sun, 12 Sep 2021 21:31:04 +0200
changeset 11801 72a2b85c0537
parent 11800 71c20650a0b4
child 11802 ba88060fa145
mod_message: Clarify purpose of username field in offline message event Added in 03714861f8fc but it did not appear to be used anywhere until offline message "handling" was added to mod_mam in 8141645e3865
plugins/mod_message.lua
--- a/plugins/mod_message.lua	Sun Sep 12 20:18:04 2021 +0200
+++ b/plugins/mod_message.lua	Sun Sep 12 21:31:04 2021 +0200
@@ -49,8 +49,8 @@
 		local ok
 		if user_exists(node, host) then
 			ok = module:fire_event('message/offline/handle', {
-				username = node;
-				origin = origin,
+				username = node, -- username of the recipient of the offline message
+				origin = origin, -- the sender
 				stanza = stanza,
 			});
 		end