TT#16400 support exclude config muc rooms from sending push notifications

Change-Id: I94c8b131abfa881a4b9fa8809f9f3d70df03d45b
changes/07/13207/1
Victor Seva 9 years ago
parent ef87c7b22b
commit a70b099391

@ -25,7 +25,8 @@ local pushd_blocking = module:shared("sipwise_pushd_blocking/pushd_blocking");
local muc_config = {
force_persistent = true,
owner_on_join = true
owner_on_join = true,
exclude = {}
};
local pushd_config = {
url = "https://127.0.0.1:8080/push",
@ -424,6 +425,9 @@ local function handle_muc_offline(event, room_jid)
module:log("debug", "muc room[%s] not here. Nothing to do",
room_jid);
return nil;
elseif ut.table.contains(pushd_config.muc_config.exclude, room_jid) then
module:log("debug", "muc room[%s] excluded from pushd", room_jid);
return nil;
end
local muc_members = get_members(muc_room);

Loading…
Cancel
Save