Browse Source

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

master
hristoterezov 7 years ago
parent
commit
f12ba37cf3

+ 6
- 6
react/features/presence-status/constants.js View File

12
  *
12
  *
13
  * @type {string}
13
  * @type {string}
14
  */
14
  */
15
-export const CALLING = 'Calling';
15
+export const CALLING = 'calling';
16
 
16
 
17
 /**
17
 /**
18
  * Тhe status for a participant when the invite is received and its device(s)
18
  * Тhe status for a participant when the invite is received and its device(s)
20
  *
20
  *
21
  * @type {string}
21
  * @type {string}
22
  */
22
  */
23
-export const RINGING = 'Ringing';
23
+export const RINGING = 'ringing';
24
 
24
 
25
 /**
25
 /**
26
  * A status for a participant that indicates the call is connected.
26
  * A status for a participant that indicates the call is connected.
35
  *
35
  *
36
  * @type {string}
36
  * @type {string}
37
  */
37
  */
38
-export const BUSY = 'Busy';
38
+export const BUSY = 'busy';
39
 
39
 
40
 /**
40
 /**
41
  * The status for a participant when the invitation is rejected.
41
  * The status for a participant when the invitation is rejected.
42
  *
42
  *
43
  * @type {string}
43
  * @type {string}
44
  */
44
  */
45
-export const REJECTED = 'Rejected';
45
+export const REJECTED = 'rejected';
46
 
46
 
47
 /**
47
 /**
48
  * The status for a participant when the invitation is ignored.
48
  * The status for a participant when the invitation is ignored.
49
  *
49
  *
50
  * @type {string}
50
  * @type {string}
51
  */
51
  */
52
-export const IGNORED = 'Ignored';
52
+export const IGNORED = 'ignored';
53
 
53
 
54
 /**
54
 /**
55
   * The status for a participant when the invitation is expired.
55
   * The status for a participant when the invitation is expired.
56
  *
56
  *
57
  * @type {string}
57
  * @type {string}
58
  */
58
  */
59
-export const EXPIRED = 'Expired';
59
+export const EXPIRED = 'expired';
60
 
60
 
61
 // Phone call statuses
61
 // Phone call statuses
62
 
62
 

+ 2
- 1
resources/prosody-plugins/mod_muc_poltergeist.lua View File

9
 local update_presence_identity = module:require "util".update_presence_identity;
9
 local update_presence_identity = module:require "util".update_presence_identity;
10
 local timer = require "util.timer";
10
 local timer = require "util.timer";
11
 local MUC_NS = "http://jabber.org/protocol/muc";
11
 local MUC_NS = "http://jabber.org/protocol/muc";
12
+local expired_status  = "expired";
12
 
13
 
13
 -- Options
14
 -- Options
14
 local poltergeist_component
15
 local poltergeist_component
243
     timer.add_task(timeout,
244
     timer.add_task(timeout,
244
         function ()
245
         function ()
245
             update_poltergeist_occupant_status(
246
             update_poltergeist_occupant_status(
246
-                room, nick, "Expired");
247
+                room, nick, expired_status);
247
             -- and remove it after some time so participant can see
248
             -- and remove it after some time so participant can see
248
             -- the update
249
             -- the update
249
             timer.add_task(removeTimeout,
250
             timer.add_task(removeTimeout,

Loading…
Cancel
Save