Browse Source

fix(types) update hand-crafted types

fix: corrected error message (see 6810839edc)
dev1
Jorge Oliveira 2 years ago
parent
commit
df7e2aaa4f

+ 1
- 1
JitsiConference.js View File

@@ -749,7 +749,7 @@ JitsiConference.prototype.end = function() {
749 749
         return;
750 750
     }
751 751
     if (!this.room) {
752
-        throw new Error('The conference has been already left');
752
+        throw new Error('You have already left the conference');
753 753
     }
754 754
 
755 755
     this.room.end();

+ 4
- 0
types/hand-crafted/JitsiConference.d.ts View File

@@ -31,6 +31,10 @@ export default class JitsiConference {
31 31
   isP2PEnabled: () => boolean;
32 32
   isP2PTestModeEnabled: () => boolean;
33 33
   leave: ( reason?: string ) => Promise<unknown>; // TODO:
34
+  isEndConferenceSupported: () => boolean;
35
+  end: () => void;
36
+  getActiveMediaSession: () => JingleSessionPC | undefined;
37
+  getMediaSessions: () => JingleSessionPC[];
34 38
   getName: () => string;
35 39
   getConnection: () => JitsiConnection;
36 40
   isAuthEnabled: () => boolean;

+ 1
- 0
types/hand-crafted/modules/xmpp/ChatRoom.d.ts View File

@@ -62,4 +62,5 @@ export default class ChatRoom extends Listenable {
62 62
   onMute: ( iq: unknown ) => void; // TODO:
63 63
   clean: () => void;
64 64
   leave: ( reason?: string ) => Promise<unknown>; // TODO:
65
+  end: () => void;
65 66
 }

Loading…
Cancel
Save