Merge pull request #3073 from jmacelroy/new-invite-only

No longer triggering calls for the Invited status of a poltergeist.
This commit is contained in:
Aaron van Meerten 2018-05-31 14:06:20 -05:00 committed by GitHub
commit a4cfe97b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ if not muc_domain_base then
end
-- Status strings that trigger call events.
local invited_status = "Invited"
local calling_status = "calling"
local ringing_status = "ringing"
local busy_status = "busy"
@ -54,7 +53,6 @@ end
-- Status | Event Type
-- _________________________
-- "calling" | INVITE
-- "Invited" | INVITE
-- "ringing" | CANCEL
-- "busy" | CANCEL
-- "rejected" | CANCEL
@ -82,7 +80,6 @@ module:hook("muc-broadcast-presence", function (event)
local switch = function(status)
case = {
[invited_status] = function() invite() end,
[calling_status] = function() invite() end,
[ringing_status] = function() cancel() end,
[busy_status] = function() cancel() end,