Просмотр исходного кода

fix(JitsiConnection) remove unused WRONG_STATE event

dev0
Saúl Ibarra Corretgé 6 месяцев назад
Родитель
Сommit
00199bcf44
3 измененных файлов: 0 добавлений и 11 удалений
  1. 0
    3
      JitsiConnectionEvents.spec.ts
  2. 0
    7
      JitsiConnectionEvents.ts
  3. 0
    1
      types/hand-crafted/JitsiConnectionEvents.d.ts

+ 0
- 3
JitsiConnectionEvents.spec.ts Просмотреть файл

8
         CONNECTION_ESTABLISHED,
8
         CONNECTION_ESTABLISHED,
9
         CONNECTION_FAILED,
9
         CONNECTION_FAILED,
10
         CONNECTION_REDIRECTED,
10
         CONNECTION_REDIRECTED,
11
-        WRONG_STATE,
12
         DISPLAY_NAME_REQUIRED,
11
         DISPLAY_NAME_REQUIRED,
13
         PROPERTIES_UPDATED,
12
         PROPERTIES_UPDATED,
14
         JitsiConnectionEvents,
13
         JitsiConnectionEvents,
20
         expect( CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
19
         expect( CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
21
         expect( CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
20
         expect( CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
22
         expect( CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
21
         expect( CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
23
-        expect( WRONG_STATE ).toBe( 'connection.wrongState' );
24
         expect( DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
22
         expect( DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
25
         expect( PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
23
         expect( PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
26
 
24
 
30
         expect( JitsiConnectionEvents.CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
28
         expect( JitsiConnectionEvents.CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
31
         expect( JitsiConnectionEvents.CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
29
         expect( JitsiConnectionEvents.CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
32
         expect( JitsiConnectionEvents.CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
30
         expect( JitsiConnectionEvents.CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
33
-        expect( JitsiConnectionEvents.WRONG_STATE ).toBe( 'connection.wrongState' );
34
         expect( JitsiConnectionEvents.DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
31
         expect( JitsiConnectionEvents.DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
35
         expect( JitsiConnectionEvents.PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
32
         expect( JitsiConnectionEvents.PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
36
     } );
33
     } );

+ 0
- 7
JitsiConnectionEvents.ts Просмотреть файл

52
      * @param properties {object} - All available connection properties (e.g. shard, region).
52
      * @param properties {object} - All available connection properties (e.g. shard, region).
53
      */
53
      */
54
     PROPERTIES_UPDATED = 'connection.propertiesUpdated',
54
     PROPERTIES_UPDATED = 'connection.propertiesUpdated',
55
-
56
-    /**
57
-     * Indicates that the performed action cannot be executed because the
58
-     * connection is not in the correct state(connected, disconnected, etc.)
59
-     */
60
-    WRONG_STATE = 'connection.wrongState'
61
 }
55
 }
62
 
56
 
63
 // exported for backward compatibility
57
 // exported for backward compatibility
65
 export const CONNECTION_ESTABLISHED = JitsiConnectionEvents.CONNECTION_ESTABLISHED;
59
 export const CONNECTION_ESTABLISHED = JitsiConnectionEvents.CONNECTION_ESTABLISHED;
66
 export const CONNECTION_FAILED = JitsiConnectionEvents.CONNECTION_FAILED;
60
 export const CONNECTION_FAILED = JitsiConnectionEvents.CONNECTION_FAILED;
67
 export const CONNECTION_REDIRECTED = JitsiConnectionEvents.CONNECTION_REDIRECTED;
61
 export const CONNECTION_REDIRECTED = JitsiConnectionEvents.CONNECTION_REDIRECTED;
68
-export const WRONG_STATE = JitsiConnectionEvents.WRONG_STATE;
69
 export const DISPLAY_NAME_REQUIRED = JitsiConnectionEvents.DISPLAY_NAME_REQUIRED;
62
 export const DISPLAY_NAME_REQUIRED = JitsiConnectionEvents.DISPLAY_NAME_REQUIRED;
70
 export const PROPERTIES_UPDATED = JitsiConnectionEvents.PROPERTIES_UPDATED;
63
 export const PROPERTIES_UPDATED = JitsiConnectionEvents.PROPERTIES_UPDATED;

+ 0
- 1
types/hand-crafted/JitsiConnectionEvents.d.ts Просмотреть файл

2
   CONNECTION_DISCONNECTED = 'connection.connectionDisconnected',
2
   CONNECTION_DISCONNECTED = 'connection.connectionDisconnected',
3
   CONNECTION_ESTABLISHED = 'connection.connectionEstablished',
3
   CONNECTION_ESTABLISHED = 'connection.connectionEstablished',
4
   CONNECTION_FAILED = 'connection.connectionFailed',
4
   CONNECTION_FAILED = 'connection.connectionFailed',
5
-  WRONG_STATE = 'connection.wrongState',
6
   DISPLAY_NAME_REQUIRED = 'connection.display_name_required'
5
   DISPLAY_NAME_REQUIRED = 'connection.display_name_required'
7
 }
6
 }

Загрузка…
Отмена
Сохранить