Software /
code /
prosody-modules
Changeset
4404:a5a0b51d26e9
mod_groups_internal: Remove unused local function
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 27 Jan 2021 14:55:22 +0000 |
parents | 4403:31470a256851 |
children | 4405:76d045f76f65 |
files | mod_groups_internal/mod_groups_internal.lua |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 14:52:30 2021 +0000 +++ b/mod_groups_internal/mod_groups_internal.lua Wed Jan 27 14:55:22 2021 +0000 @@ -72,22 +72,6 @@ do_all_group_subscriptions_by_user(event.session.username); end); -local function get_group_muc(group_id) - -- Group MUC - local group_info = group_info_store:get(group_id); - if group_info and group_info.muc_jid then - local muc_jid = group_info.muc_jid; - local mod_muc = hosts[jid.host(muc_jid)].modules.muc; - if mod_muc then - local room = mod_muc.get_room_from_jid(muc_jid); - if not room then - room = mod_muc.create_room(muc_jid); - end - return room; - end - end -end - --luacheck: ignore 131 function create(group_info, create_muc, group_id) if not group_info.name then