Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

hristoterezovf12ba37cf3a5
diff --git a/react/features/presence-status/constants.js b/react/features/presence-status/constants.js
index f6b6522efd..c3fc9d42f6 100644
--- a/react/features/presence-status/constants.js
+++ b/react/features/presence-status/constants.js
@@ -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
diff --git a/resources/prosody-plugins/mod_muc_poltergeist.lua b/resources/prosody-plugins/mod_muc_poltergeist.lua
index ac64f14257..94712b3c20 100644
--- a/resources/prosody-plugins/mod_muc_poltergeist.lua
+++ b/resources/prosody-plugins/mod_muc_poltergeist.lua
@@ -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,