infobip-mobile-messaging-react-native-plugin 7.0.2 → 7.0.4
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/android/build.gradle
CHANGED
|
Binary file
|
|
@@ -50,13 +50,17 @@ class RNMMChatViewManager: RCTViewManager {
|
|
|
50
50
|
return
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
guard let existingChatVC = parentVC.children.filter({ $0 is MMChatViewController }).first as? MMChatViewController else {
|
|
54
|
+
let newChatVC = MMChatViewController.makeModalViewController()
|
|
55
|
+
parentVC.addChild(newChatVC)
|
|
56
|
+
addSubview(newChatVC.view)
|
|
57
|
+
newChatVC.didMove(toParent: parentVC)
|
|
58
|
+
self.viewController = newChatVC
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
/* existingChatVC is the case of didMoveToWindow being triggered from the presentation of other view (ie RTCImageView) */
|
|
62
|
+
self.viewController = existingChatVC
|
|
63
|
+
}
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
extension UIView {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infobip-mobile-messaging-react-native-plugin",
|
|
3
3
|
"title": "Infobip Mobile Messaging React Native Plugin",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.4",
|
|
5
5
|
"description": "Infobip Mobile Messaging React Native Plugin",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"scripts": {
|
package/release.sh
CHANGED