@messenger-box/platform-mobile 0.0.1-alpha.387 → 0.0.1-alpha.388

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 CHANGED
@@ -3,6 +3,10 @@
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.388](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.387...v0.0.1-alpha.388) (2023-08-25)
7
+
8
+ **Note:** Version bump only for package @messenger-box/platform-mobile
9
+
6
10
  ## [0.0.1-alpha.387](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.386...v0.0.1-alpha.387) (2023-08-24)
7
11
 
8
12
  **Note:** Version bump only for package @messenger-box/platform-mobile
package/lib/index.js CHANGED
@@ -2573,6 +2573,7 @@ const native_base_1 = __webpack_require__(/*! native-base */ "native-base");
2573
2573
  const vector_icons_1 = __webpack_require__(/*! @expo/vector-icons */ "@expo/vector-icons");
2574
2574
  const react_redux_1 = __webpack_require__(/*! react-redux */ "react-redux");
2575
2575
  const native_1 = __webpack_require__(/*! @react-navigation/native */ "@react-navigation/native");
2576
+ const lodash_1 = __webpack_require__(/*! lodash */ "lodash");
2576
2577
  const DialogsListItem_1 = __webpack_require__(/*! ../components/DialogsListItem */ "./src/screens/inbox/components/DialogsListItem.tsx");
2577
2578
  const platform_client_1 = __webpack_require__(/*! @messenger-box/platform-client */ "@messenger-box/platform-client");
2578
2579
  const user_auth0_client_1 = __webpack_require__(/*! @adminide-stack/user-auth0-client */ "@adminide-stack/user-auth0-client");
@@ -2609,7 +2610,7 @@ const DialogsComponent = (props) => {
2609
2610
  if (!((_a = userChannels === null || userChannels === void 0 ? void 0 : userChannels.channelsByUser) === null || _a === void 0 ? void 0 : _a.length))
2610
2611
  return null;
2611
2612
  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 : [];
2612
- return uChannels || [];
2613
+ return (uChannels && (0, lodash_1.orderBy)(uChannels, ['updatedAt'], ['desc'])) || [];
2613
2614
  }, [userChannels]);
2614
2615
  // useEffect(() => {
2615
2616
  // setTimeout(() => {