fix(presence-status): Use lower case for call flow related statuses.

This commit is contained in:
hristoterezov 2018-05-22 14:37:57 -05:00 committed by Дамян Минков
parent d4d2c25499
commit f12ba37cf3
2 changed files with 8 additions and 7 deletions

View File

@ -12,7 +12,7 @@ export const INVITED = 'Invited';
*
* @type {string}
*/
export const CALLING = 'Calling';
export const CALLING = 'calling';
/**
* Тhe status for a participant when the invite is received and its device(s)
@ -20,7 +20,7 @@ export const CALLING = 'Calling';
*
* @type {string}
*/
export const RINGING = 'Ringing';
export const RINGING = 'ringing';
/**
* A status for a participant that indicates the call is connected.
@ -35,28 +35,28 @@ export const CONNECTED_USER = 'connected';
*
* @type {string}
*/
export const BUSY = 'Busy';
export const BUSY = 'busy';
/**
* The status for a participant when the invitation is rejected.
*
* @type {string}
*/
export const REJECTED = 'Rejected';
export const REJECTED = 'rejected';
/**
* The status for a participant when the invitation is ignored.
*
* @type {string}
*/
export const IGNORED = 'Ignored';
export const IGNORED = 'ignored';
/**
* The status for a participant when the invitation is expired.
*
* @type {string}
*/
export const EXPIRED = 'Expired';
export const EXPIRED = 'expired';
// Phone call statuses

View File

@ -9,6 +9,7 @@ local wrap_async_run = module:require "util".wrap_async_run;
local update_presence_identity = module:require "util".update_presence_identity;
local timer = require "util.timer";
local MUC_NS = "http://jabber.org/protocol/muc";
local expired_status = "expired";
-- Options
local poltergeist_component
@ -243,7 +244,7 @@ function create_poltergeist_occupant(room, nick, name, avatar, status, context)
timer.add_task(timeout,
function ()
update_poltergeist_occupant_status(
room, nick, "Expired");
room, nick, expired_status);
-- and remove it after some time so participant can see
-- the update
timer.add_task(removeTimeout,