@messenger-box/platform-mobile 0.0.1-alpha.394 → 0.0.1-alpha.398
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/CHANGELOG.md +8 -0
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/screens/inbox/DialogMessages.d.ts +2 -2
- package/lib/screens/inbox/DialogThreadMessages.d.ts +2 -2
- package/lib/screens/inbox/DialogThreads.d.ts +2 -2
- package/lib/screens/inbox/Inbox.d.ts +2 -1
- package/lib/screens/inbox/components/SlackMessageContainer/ImageViewerModal.d.ts +2 -1
- package/lib/screens/inbox/components/SlackMessageContainer/SlackBubble.d.ts +1 -1
- package/lib/screens/inbox/components/SlackMessageContainer/SlackMessage.d.ts +2 -2
- package/lib/screens/inbox/containers/ConversationView.d.ts +1 -1
- package/lib/screens/inbox/containers/Dialogs.d.ts +1 -1
- package/lib/screens/inbox/containers/SupportServiceDialogs.d.ts +1 -1
- package/lib/screens/inbox/containers/ThreadConversationView.d.ts +1 -1
- package/lib/screens/inbox/containers/ThreadsView.d.ts +1 -1
- package/package.json +4 -4
- package/src/screens/inbox/components/SlackMessageContainer/SlackMessage.tsx +1 -1
- package/src/screens/inbox/components/SupportServiceDialogsListItem.tsx +3 -1
- package/src/screens/inbox/containers/Dialogs.tsx +1 -1
- package/src/screens/inbox/containers/SupportServiceDialogs.tsx +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.0.1-alpha.398](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.397...v0.0.1-alpha.398) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-mobile
|
|
9
|
+
|
|
10
|
+
## [0.0.1-alpha.395](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.394...v0.0.1-alpha.395) (2023-09-30)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/platform-mobile
|
|
13
|
+
|
|
6
14
|
## [0.0.1-alpha.394](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.393...v0.0.1-alpha.394) (2023-09-25)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @messenger-box/platform-mobile
|
package/lib/index.js
CHANGED
|
@@ -1415,7 +1415,7 @@ selectedChannelId, channel, onOpen, refreshing, role, }) {
|
|
|
1415
1415
|
var _a, _b, _c, _d, _e, _f;
|
|
1416
1416
|
if (!(channel === null || channel === void 0 ? void 0 : channel.members))
|
|
1417
1417
|
return null;
|
|
1418
|
-
const membersIds = (_c = (_b = (_a = channel === null || channel === void 0 ? void 0 : channel.members) === null || _a === void 0 ? void 0 : _a.filter((m) => { var _a; return ((_a = m === null || m === void 0 ? void 0 : m.user) === null || _a === void 0 ? void 0 : _a.id) !== (currentUser === null || currentUser === void 0 ? void 0 : currentUser.id); })) === null || _b === void 0 ? void 0 : _b.map((mu) => { var _a; return (_a = mu === null || mu === void 0 ? void 0 : mu.user) === null || _a === void 0 ? void 0 : _a.id; })) !== null && _c !== void 0 ? _c : [];
|
|
1418
|
+
const membersIds = (_c = (_b = (_a = channel === null || channel === void 0 ? void 0 : channel.members) === null || _a === void 0 ? void 0 : _a.filter((m) => { var _a; return m !== null && ((_a = m === null || m === void 0 ? void 0 : m.user) === null || _a === void 0 ? void 0 : _a.id) !== (currentUser === null || currentUser === void 0 ? void 0 : currentUser.id); })) === null || _b === void 0 ? void 0 : _b.map((mu) => { var _a; return (_a = mu === null || mu === void 0 ? void 0 : mu.user) === null || _a === void 0 ? void 0 : _a.id; })) !== null && _c !== void 0 ? _c : [];
|
|
1419
1419
|
const creatorId = (_d = channel === null || channel === void 0 ? void 0 : channel.creator) === null || _d === void 0 ? void 0 : _d.id;
|
|
1420
1420
|
const mergedIds = (_e = [].concat(membersIds, creatorId)) !== null && _e !== void 0 ? _e : [];
|
|
1421
1421
|
return (_f = mergedIds === null || mergedIds === void 0 ? void 0 : mergedIds.filter((m, pos) => (mergedIds === null || mergedIds === void 0 ? void 0 : mergedIds.indexOf(m)) === pos)) !== null && _f !== void 0 ? _f : [];
|
|
@@ -2323,7 +2323,7 @@ const DialogsComponent = (props) => {
|
|
|
2323
2323
|
var _a, _b, _c;
|
|
2324
2324
|
if (!((_a = userChannels === null || userChannels === void 0 ? void 0 : userChannels.channelsByUser) === null || _a === void 0 ? void 0 : _a.length))
|
|
2325
2325
|
return null;
|
|
2326
|
-
let uChannels = (_c = (_b = userChannels === null || userChannels === void 0 ? void 0 : userChannels.channelsByUser) === null || _b === void 0 ? void 0 : _b.filter((c) => c.members.some((u) => { var _a; return ((_a = u === null || u === void 0 ? void 0 : u.user) === null || _a === void 0 ? void 0 : _a.id) != (auth === null || auth === void 0 ? void 0 : auth.id) && u.user.__typename == 'UserAccount'; }))) !== null && _c !== void 0 ? _c : [];
|
|
2326
|
+
let uChannels = (_c = (_b = userChannels === null || userChannels === void 0 ? void 0 : userChannels.channelsByUser) === null || _b === void 0 ? void 0 : _b.filter((c) => c.members.some((u) => { var _a; return u !== null && ((_a = u === null || u === void 0 ? void 0 : u.user) === null || _a === void 0 ? void 0 : _a.id) != (auth === null || auth === void 0 ? void 0 : auth.id) && u.user.__typename == 'UserAccount'; }))) !== null && _c !== void 0 ? _c : [];
|
|
2327
2327
|
return (uChannels && (0, lodash_1.orderBy)(uChannels, ['updatedAt'], ['desc'])) || [];
|
|
2328
2328
|
}, [userChannels]);
|
|
2329
2329
|
// useEffect(() => {
|
|
@@ -2465,13 +2465,15 @@ const SupportServiceDialogsComponent = (props) => {
|
|
|
2465
2465
|
var _a, _b, _c;
|
|
2466
2466
|
if (!((_a = serviceChannels === null || serviceChannels === void 0 ? void 0 : serviceChannels.supportServiceChannels) === null || _a === void 0 ? void 0 : _a.length))
|
|
2467
2467
|
return null;
|
|
2468
|
-
let uChannels = (_c = (_b = serviceChannels === null || serviceChannels === void 0 ? void 0 : serviceChannels.supportServiceChannels) === null || _b === void 0 ? void 0 : _b.filter((c) => c.members.some((u) => u.user.__typename == 'UserAccount'))) !== null && _c !== void 0 ? _c : [];
|
|
2468
|
+
let uChannels = (_c = (_b = serviceChannels === null || serviceChannels === void 0 ? void 0 : serviceChannels.supportServiceChannels) === null || _b === void 0 ? void 0 : _b.filter((c) => c.members.some((u) => u !== null && u.user.__typename == 'UserAccount'))) !== null && _c !== void 0 ? _c : [];
|
|
2469
2469
|
return uChannels || [];
|
|
2470
2470
|
}, [serviceChannels]);
|
|
2471
2471
|
const handleSelectChannel = (0, react_1.useCallback)((id, title, postParentId) => {
|
|
2472
2472
|
var _a;
|
|
2473
2473
|
if (params === null || params === void 0 ? void 0 : params.channelId) {
|
|
2474
|
-
navigation.navigate((params === null || params === void 0 ? void 0 : params.postParentId) || (params === null || params === void 0 ? void 0 : params.postParentId) == 0
|
|
2474
|
+
navigation.navigate((params === null || params === void 0 ? void 0 : params.postParentId) || (params === null || params === void 0 ? void 0 : params.postParentId) == 0
|
|
2475
|
+
? config_1.config.THREAD_MESSEGE_PATH
|
|
2476
|
+
: config_1.config.THREADS_PATH, {
|
|
2475
2477
|
channelId: params === null || params === void 0 ? void 0 : params.channelId,
|
|
2476
2478
|
role: params === null || params === void 0 ? void 0 : params.role,
|
|
2477
2479
|
title: (_a = params === null || params === void 0 ? void 0 : params.title) !== null && _a !== void 0 ? _a : null,
|