Changeset

11797:72a2b85c0537

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
author Kim Alvefur <zash@zash.se>
date Sun, 12 Sep 2021 21:31:04 +0200
parents 11796:71c20650a0b4
children 11798:ba88060fa145
files plugins/mod_message.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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