瀏覽代碼

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

master
hristoterezov 7 年之前
父節點
當前提交
f12ba37cf3
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 6
    6
      react/features/presence-status/constants.js
  2. 2
    1
      resources/prosody-plugins/mod_muc_poltergeist.lua

+ 6
- 6
react/features/presence-status/constants.js 查看文件

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

+ 2
- 1
resources/prosody-plugins/mod_muc_poltergeist.lua 查看文件

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

Loading…
取消
儲存