@messenger-box/platform-mobile 0.0.1-alpha.388 → 0.0.1-alpha.391
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-mobile",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.391",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"watch": "yarn build:lib:watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@messenger-box/core": "0.0.1-alpha.
|
|
23
|
-
"@messenger-box/platform-client": "0.0.1-alpha.
|
|
22
|
+
"@messenger-box/core": "0.0.1-alpha.391",
|
|
23
|
+
"@messenger-box/platform-client": "0.0.1-alpha.391",
|
|
24
24
|
"base-64": "1.0.0",
|
|
25
25
|
"react-native-gifted-chat": "1.0.4"
|
|
26
26
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"typescript": {
|
|
41
41
|
"definition": "lib/index.d.ts"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8d25492999ac0d8328186716751cd8966e63225c"
|
|
44
44
|
}
|
|
@@ -8,7 +8,7 @@ export const config = cleanEnv(process['APP_ENV'] || process.env, {
|
|
|
8
8
|
// THREADS_PATH: str({ default: 'MainStack.ThreadMessage' }),
|
|
9
9
|
THREAD_MESSEGE_PATH: str({ default: 'MainStack.ThreadMessage' }),
|
|
10
10
|
THREADS_PATH: str({ default: 'MainStack.Thread' }),
|
|
11
|
-
CALL_TO_ACTION_PATH: str({ default: 'MainStack.
|
|
11
|
+
CALL_TO_ACTION_PATH: str({ default: 'MainStack.GuestReservationRequestDetail' }),
|
|
12
12
|
CALL_TO_ACTION_BOX_BGCOLOR: str({ default: '#0084ff' }),
|
|
13
13
|
CALL_TO_ACTION_BUTTON_BORDERCOLOR: str({ default: '#fff' }),
|
|
14
14
|
CALL_TO_ACTION_TEXT_COLOR: str({ default: '#fff' }),
|
|
@@ -91,9 +91,9 @@ const ConversationViewComponent = ({ channelId, role }: any) => {
|
|
|
91
91
|
const [isShowImageViewer, setImageViewer] = useState<boolean>(false);
|
|
92
92
|
const [imageObject, setImageObject] = useState<any>({});
|
|
93
93
|
const isFocused = useIsFocused();
|
|
94
|
-
const { data: mongooseObjectId } = useGetNewMongooseObjectIdQuery({
|
|
94
|
+
const { data: mongooseObjectId,refetch:refetchNewPostId } = useGetNewMongooseObjectIdQuery({
|
|
95
95
|
fetchPolicy: 'network-only',
|
|
96
|
-
pollInterval: 5000,
|
|
96
|
+
//pollInterval: 5000,
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
const {
|
|
@@ -532,7 +532,9 @@ const ConversationViewComponent = ({ channelId, role }: any) => {
|
|
|
532
532
|
};
|
|
533
533
|
|
|
534
534
|
if (images && images.length > 0) {
|
|
535
|
-
const
|
|
535
|
+
const newPostId = await refetchNewPostId();
|
|
536
|
+
const postId: any = newPostId?.data?.getNewMongooseObjectId?.toString();
|
|
537
|
+
// const postId: any = mongooseObjectId?.getNewMongooseObjectId;
|
|
536
538
|
setLoading(true);
|
|
537
539
|
const uploadResponse = await startUpload({
|
|
538
540
|
file: images,
|
|
@@ -96,9 +96,9 @@ const ThreadConversationViewComponent = ({ channelId, postParentId, isPostParent
|
|
|
96
96
|
const [parentId, setParentId] = useState<any>(postParentId);
|
|
97
97
|
const { startUpload } = useUploadFilesNative();
|
|
98
98
|
const [threadPost, setThreadPost] = useState<any[]>([]);
|
|
99
|
-
const { data: mongooseObjectId } = useGetNewMongooseObjectIdQuery({
|
|
99
|
+
const { data: mongooseObjectId,refetch:refetchNewPostId } = useGetNewMongooseObjectIdQuery({
|
|
100
100
|
fetchPolicy: 'network-only',
|
|
101
|
-
|
|
101
|
+
// pollInterval: 5000,
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
const {
|
|
@@ -364,7 +364,9 @@ const ThreadConversationViewComponent = ({ channelId, postParentId, isPostParent
|
|
|
364
364
|
if (!message && message != ' ' && images.length == 0) return;
|
|
365
365
|
|
|
366
366
|
if (images && images.length > 0) {
|
|
367
|
-
const
|
|
367
|
+
const newPostId = await refetchNewPostId();
|
|
368
|
+
const postId: any = newPostId?.data?.getNewMongooseObjectId?.toString();
|
|
369
|
+
// const postId: any = mongooseObjectId?.getNewMongooseObjectId;
|
|
368
370
|
setLoading(true);
|
|
369
371
|
const uploadResponse = await startUpload({
|
|
370
372
|
file: images,
|