Software /
code /
prosody
Changeset
9765:5253555128ec
Merge with jonas
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Jan 2019 12:19:23 +0100 |
parents | 9764:2f4240bfd147 (current diff) 9761:8e83f90bf96b (diff) |
children | 9766:f40b9649e929 |
files | |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Jan 06 12:18:48 2019 +0100 +++ b/plugins/muc/muc.lib.lua Sun Jan 06 12:19:23 2019 +0100 @@ -23,6 +23,7 @@ local st = require "util.stanza"; local base64 = require "util.encodings".base64; local md5 = require "util.hashes".md5; +local id = require "util.id"; local log = module._log; @@ -1037,6 +1038,9 @@ function room_mt:handle_groupchat_to_room(origin, stanza) local from = stanza.attr.from; local occupant = self:get_occupant_by_real_jid(from); + if not stanza.attr.id then + stanza.attr.id = id.medium() + end if module:fire_event("muc-occupant-groupchat", { room = self; origin = origin; stanza = stanza; from = from; occupant = occupant; }) then return true; end