@seamlink/cordova-plugin-jitsi 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,7 @@ jitsiplugin.join('https://meet.jit.si/', roomId, false, (data) => {
18
18
  //CONFERENCE_TERMINATED
19
19
  //CONFERENCE_FINISHED
20
20
  //CONFERENCE_DESTROYED
21
- if (data === "CONFERENCE_TERMINATED") {
21
+ if (["CONFERENCE_TERMINATED", "READY_TO_CLOSE"].includes(data)) {
22
22
  jitsiplugin.destroy((data) => {
23
23
  // call finished
24
24
  }, f(err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamlink/cordova-plugin-jitsi",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "\n This is plugin for Jitsi Meet calling service!\n ",
5
5
  "cordova": {
6
6
  "id": "@seamlink/cordova-plugin-jitsi",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id='@seamlink/cordova-plugin-jitsi' version='2.1.0'
2
+ <plugin id='@seamlink/cordova-plugin-jitsi' version='2.1.1'
3
3
  xmlns='http://apache.org/cordova/ns/plugins/1.0'
4
4
  xmlns:tools="http://schemas.android.com/tools"
5
5
  xmlns:android='http://schemas.android.com/apk/res/android'>
@@ -15,6 +15,7 @@
15
15
  - (void)conferenceLeft:(NSDictionary *)data;
16
16
  - (void)conferenceWillJoin:(NSDictionary *)data;
17
17
  - (void)conferenceTerminated:(NSDictionary *)data;
18
+ - (void)readyToClose:(NSDictionary *)data;
18
19
  - (void)loadConfigError:(NSDictionary *)data;
19
20
 
20
21
  @end
@@ -103,6 +103,13 @@ void _onJitsiMeetViewDelegateEvent(NSString *name, NSDictionary *data) {
103
103
  [self.commandDelegate sendPluginResult:plgResult callbackId:commandBack.callbackId];
104
104
  }
105
105
 
106
+ - (void)readyToClose:(NSDictionary *)data {
107
+ _onJitsiMeetViewDelegateEvent(@"READY_TO_CLOSE", data);
108
+ plgResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"READY_TO_CLOSE"];
109
+ [plgResult setKeepCallbackAsBool:YES];
110
+ [self.commandDelegate sendPluginResult:plgResult callbackId:commandBack.callbackId];
111
+ }
112
+
106
113
  - (void)loadConfigError:(NSDictionary *)data {
107
114
  _onJitsiMeetViewDelegateEvent(@"LOAD_CONFIG_ERROR", data);
108
115
  plgResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"LOAD_CONFIG_ERROR"];