@ethora/chat-component-rn 26.10.8 → 26.10.10
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 +7 -0
- package/README.md +1 -1
- package/lib/commonjs/components/MainComponents/AlbumGrid.js +6 -2
- package/lib/commonjs/components/MainComponents/AlbumGrid.js.map +1 -1
- package/lib/commonjs/components/MainComponents/ChatHeader.js +16 -11
- package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/MainComponents/MediaMessage.js +13 -0
- package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/commonjs/components/MainComponents/RoomList.js +7 -16
- package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +3 -3
- package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/commonjs/components/MessageBubble/Message.js +27 -1
- package/lib/commonjs/components/MessageBubble/Message.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatMediaGrid.js +159 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatMediaGrid.js.map +1 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +203 -134
- package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/commonjs/components/Modals/ChatProfileModal/LeaveChatModal.js +180 -0
- package/lib/commonjs/components/Modals/ChatProfileModal/LeaveChatModal.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +100 -162
- package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/commonjs/components/Modals/FilePreviewModal/MediaViewer.js +824 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/MediaViewer.js.map +1 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/useSaveFile.js +179 -0
- package/lib/commonjs/components/Modals/FilePreviewModal/useSaveFile.js.map +1 -0
- package/lib/commonjs/components/Modals/MessageSearchModal/MessageSearchModal.js +22 -5
- package/lib/commonjs/components/Modals/MessageSearchModal/MessageSearchModal.js.map +1 -1
- package/lib/commonjs/components/VideoCalls/useCallKeep.js +1 -3
- package/lib/commonjs/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/commonjs/components/styled/MessageImage.js +4 -1
- package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
- package/lib/commonjs/components/styled/VideoMessage.js +5 -1
- package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
- package/lib/commonjs/context/MediaSourceContext.js +18 -0
- package/lib/commonjs/context/MediaSourceContext.js.map +1 -0
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js +3 -1
- package/lib/commonjs/helpers/constants/MODAL_COMPONENTS.js.map +1 -1
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js +2 -0
- package/lib/commonjs/helpers/constants/MODAL_TYPES.js.map +1 -1
- package/lib/commonjs/helpers/publicChatsEntry.js +8 -6
- package/lib/commonjs/helpers/publicChatsEntry.js.map +1 -1
- package/lib/commonjs/helpers/roomMedia.js +118 -0
- package/lib/commonjs/helpers/roomMedia.js.map +1 -0
- package/lib/commonjs/i18n/strings.js +36 -0
- package/lib/commonjs/i18n/strings.js.map +1 -1
- package/lib/commonjs/networking/api-requests/rooms.api.js +9 -13
- package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/commonjs/networking/callTokenStanza.js +13 -1
- package/lib/commonjs/networking/callTokenStanza.js.map +1 -1
- package/lib/commonjs/push/sealedPushTask.js +20 -1
- package/lib/commonjs/push/sealedPushTask.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/components/MainComponents/AlbumGrid.js +6 -2
- package/lib/module/components/MainComponents/AlbumGrid.js.map +1 -1
- package/lib/module/components/MainComponents/ChatHeader.js +18 -13
- package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
- package/lib/module/components/MainComponents/MediaMessage.js +13 -0
- package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
- package/lib/module/components/MainComponents/RoomList.js +7 -16
- package/lib/module/components/MainComponents/RoomList.js.map +1 -1
- package/lib/module/components/Menu/HeaderRoomListMenu.js +3 -3
- package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
- package/lib/module/components/MessageBubble/Message.js +27 -1
- package/lib/module/components/MessageBubble/Message.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/ChatMediaGrid.js +154 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatMediaGrid.js.map +1 -0
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +204 -136
- package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
- package/lib/module/components/Modals/ChatProfileModal/LeaveChatModal.js +175 -0
- package/lib/module/components/Modals/ChatProfileModal/LeaveChatModal.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +100 -163
- package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
- package/lib/module/components/Modals/FilePreviewModal/MediaViewer.js +819 -0
- package/lib/module/components/Modals/FilePreviewModal/MediaViewer.js.map +1 -0
- package/lib/module/components/Modals/FilePreviewModal/useSaveFile.js +172 -0
- package/lib/module/components/Modals/FilePreviewModal/useSaveFile.js.map +1 -0
- package/lib/module/components/Modals/MessageSearchModal/MessageSearchModal.js +20 -4
- package/lib/module/components/Modals/MessageSearchModal/MessageSearchModal.js.map +1 -1
- package/lib/module/components/VideoCalls/useCallKeep.js +2 -4
- package/lib/module/components/VideoCalls/useCallKeep.js.map +1 -1
- package/lib/module/components/styled/MessageImage.js +4 -1
- package/lib/module/components/styled/MessageImage.js.map +1 -1
- package/lib/module/components/styled/VideoMessage.js +5 -1
- package/lib/module/components/styled/VideoMessage.js.map +1 -1
- package/lib/module/context/MediaSourceContext.js +13 -0
- package/lib/module/context/MediaSourceContext.js.map +1 -0
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js +2 -1
- package/lib/module/helpers/constants/MODAL_COMPONENTS.js.map +1 -1
- package/lib/module/helpers/constants/MODAL_TYPES.js +2 -0
- package/lib/module/helpers/constants/MODAL_TYPES.js.map +1 -1
- package/lib/module/helpers/publicChatsEntry.js +8 -6
- package/lib/module/helpers/publicChatsEntry.js.map +1 -1
- package/lib/module/helpers/roomMedia.js +112 -0
- package/lib/module/helpers/roomMedia.js.map +1 -0
- package/lib/module/i18n/strings.js +36 -0
- package/lib/module/i18n/strings.js.map +1 -1
- package/lib/module/networking/api-requests/rooms.api.js +9 -13
- package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
- package/lib/module/networking/callTokenStanza.js +13 -1
- package/lib/module/networking/callTokenStanza.js.map +1 -1
- package/lib/module/push/sealedPushTask.js +20 -1
- package/lib/module/push/sealedPushTask.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/components/MainComponents/AlbumGrid.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts +3 -1
- package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
- package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
- package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageBubble/Message.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/ChatMediaGrid.d.ts +16 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatMediaGrid.d.ts.map +1 -0
- package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/ChatProfileModal/LeaveChatModal.d.ts +18 -0
- package/lib/typescript/components/Modals/ChatProfileModal/LeaveChatModal.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts +16 -0
- package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
- package/lib/typescript/components/Modals/FilePreviewModal/MediaViewer.d.ts +27 -0
- package/lib/typescript/components/Modals/FilePreviewModal/MediaViewer.d.ts.map +1 -0
- package/lib/typescript/components/Modals/FilePreviewModal/useSaveFile.d.ts +9 -0
- package/lib/typescript/components/Modals/FilePreviewModal/useSaveFile.d.ts.map +1 -0
- package/lib/typescript/components/Modals/MessageSearchModal/MessageSearchModal.d.ts +8 -0
- package/lib/typescript/components/Modals/MessageSearchModal/MessageSearchModal.d.ts.map +1 -1
- package/lib/typescript/components/VideoCalls/useCallKeep.d.ts.map +1 -1
- package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
- package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
- package/lib/typescript/context/MediaSourceContext.d.ts +4 -0
- package/lib/typescript/context/MediaSourceContext.d.ts.map +1 -0
- package/lib/typescript/helpers/constants/MODAL_COMPONENTS.d.ts.map +1 -1
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts +2 -0
- package/lib/typescript/helpers/constants/MODAL_TYPES.d.ts.map +1 -1
- package/lib/typescript/helpers/publicChatsEntry.d.ts +7 -5
- package/lib/typescript/helpers/publicChatsEntry.d.ts.map +1 -1
- package/lib/typescript/helpers/roomMedia.d.ts +26 -0
- package/lib/typescript/helpers/roomMedia.d.ts.map +1 -0
- package/lib/typescript/i18n/strings.d.ts.map +1 -1
- package/lib/typescript/main.d.ts +1 -1
- package/lib/typescript/main.d.ts.map +1 -1
- package/lib/typescript/networking/api-requests/rooms.api.d.ts +6 -5
- package/lib/typescript/networking/api-requests/rooms.api.d.ts.map +1 -1
- package/lib/typescript/networking/callTokenStanza.d.ts.map +1 -1
- package/lib/typescript/push/sealedPushTask.d.ts +13 -0
- package/lib/typescript/push/sealedPushTask.d.ts.map +1 -1
- package/lib/typescript/types/models/modal.model.d.ts +18 -0
- package/lib/typescript/types/models/modal.model.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +18 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/lib/typescript/version.d.ts.map +1 -1
- package/package.json +9 -2
- package/plugins/notification-service/NotificationService.swift +105 -19
- package/plugins/withNotificationServiceExtension.js +44 -4
- package/src/components/MainComponents/AlbumGrid.tsx +5 -1
- package/src/components/MainComponents/ChatHeader.tsx +16 -11
- package/src/components/MainComponents/MediaMessage.tsx +13 -2
- package/src/components/MainComponents/RoomList.tsx +8 -19
- package/src/components/Menu/HeaderRoomListMenu.tsx +13 -8
- package/src/components/MessageBubble/Message.tsx +24 -1
- package/src/components/Modals/ChatProfileModal/ChatMediaGrid.tsx +174 -0
- package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +119 -48
- package/src/components/Modals/ChatProfileModal/LeaveChatModal.tsx +191 -0
- package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +115 -185
- package/src/components/Modals/FilePreviewModal/MediaViewer.tsx +880 -0
- package/src/components/Modals/FilePreviewModal/useSaveFile.ts +207 -0
- package/src/components/Modals/MessageSearchModal/MessageSearchModal.tsx +56 -30
- package/src/components/VideoCalls/useCallKeep.ts +2 -4
- package/src/components/styled/MessageImage.tsx +3 -1
- package/src/components/styled/VideoMessage.tsx +5 -1
- package/src/context/MediaSourceContext.tsx +14 -0
- package/src/helpers/constants/MODAL_COMPONENTS.tsx +4 -1
- package/src/helpers/constants/MODAL_TYPES.ts +2 -0
- package/src/helpers/publicChatsEntry.ts +8 -7
- package/src/helpers/roomMedia.ts +126 -0
- package/src/i18n/strings.ts +36 -0
- package/src/main.ts +1 -1
- package/src/networking/api-requests/rooms.api.ts +13 -12
- package/src/networking/callTokenStanza.ts +10 -1
- package/src/push/sealedPushTask.ts +34 -1
- package/src/types/models/modal.model.ts +16 -0
- package/src/types/types.ts +16 -0
- package/src/version.ts +1 -1
|
@@ -10,6 +10,7 @@ var _reactNative = require("react-native");
|
|
|
10
10
|
var _reactRedux = require("react-redux");
|
|
11
11
|
var _chatSettingsSlice = require("../../roomStore/chatSettingsSlice");
|
|
12
12
|
var _MODAL_TYPES = require("../../helpers/constants/MODAL_TYPES");
|
|
13
|
+
var _MediaSourceContext = require("../../context/MediaSourceContext");
|
|
13
14
|
var _icons = require("../../assets/icons");
|
|
14
15
|
var _mediaDimensions = require("../../helpers/mediaDimensions");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -124,6 +125,7 @@ const CustomMessageVideo = ({
|
|
|
124
125
|
onOpen
|
|
125
126
|
}) => {
|
|
126
127
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
128
|
+
const source = (0, _MediaSourceContext.useMediaSource)();
|
|
127
129
|
const [posterFailed, setPosterFailed] = (0, _react.useState)(false);
|
|
128
130
|
const handleOpen = () => {
|
|
129
131
|
if (onOpen) {
|
|
@@ -134,7 +136,9 @@ const CustomMessageVideo = ({
|
|
|
134
136
|
fileName,
|
|
135
137
|
fileURL,
|
|
136
138
|
mimetype,
|
|
137
|
-
originalName
|
|
139
|
+
originalName,
|
|
140
|
+
previewURL,
|
|
141
|
+
source
|
|
138
142
|
}));
|
|
139
143
|
dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.FILE_PREVIEW));
|
|
140
144
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_secureFileUrl","_reactNative","_reactRedux","_chatSettingsSlice","_MODAL_TYPES","_icons","_mediaDimensions","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PlayBadge","jsx","View","style","styles","overlay","pointerEvents","children","playButton","PlayIcon","width","height","PosterVideo","previewURL","onOpen","onPosterError","tile","measured","setDims","useState","defaultMediaDims","dims","useEffect","active","Image","getSize","w","h","fitMediaDimensions","jsxs","Pressable","onPress","wrapper","tileWrapper","accessibilityRole","accessibilityLabel","source","uri","video","resizeMode","onError","PlaceholderVideo","CustomMessageVideo","fileName","originalName","fileURL","mimetype","dispatch","useDispatch","posterFailed","setPosterFailed","handleOpen","setActiveFile","setActiveModal","MODAL_TYPES","FILE_PREVIEW","isSecureFileUrl","requestFileTokenRecovery","_default","exports","StyleSheet","create","borderRadius","overflow","backgroundColor","absoluteFill","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["components/styled/VideoMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAIA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_secureFileUrl","_reactNative","_reactRedux","_chatSettingsSlice","_MODAL_TYPES","_MediaSourceContext","_icons","_mediaDimensions","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PlayBadge","jsx","View","style","styles","overlay","pointerEvents","children","playButton","PlayIcon","width","height","PosterVideo","previewURL","onOpen","onPosterError","tile","measured","setDims","useState","defaultMediaDims","dims","useEffect","active","Image","getSize","w","h","fitMediaDimensions","jsxs","Pressable","onPress","wrapper","tileWrapper","accessibilityRole","accessibilityLabel","source","uri","video","resizeMode","onError","PlaceholderVideo","CustomMessageVideo","fileName","originalName","fileURL","mimetype","dispatch","useDispatch","useMediaSource","posterFailed","setPosterFailed","handleOpen","setActiveFile","setActiveModal","MODAL_TYPES","FILE_PREVIEW","isSecureFileUrl","requestFileTokenRecovery","_default","exports","StyleSheet","create","borderRadius","overflow","backgroundColor","absoluteFill","justifyContent","alignItems"],"sourceRoot":"../../../../src","sources":["components/styled/Video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sC,UAAW;IAACpC,IAAI,EAAEA;EAAK,CAAE,CAAC;AAC7D,CAAC;AAAC,IAAA2C,QAAA,GAAAC,OAAA,CAAArE,OAAA,GAEamD,kBAAkB;AAEjC,MAAMtC,MAAM,GAAGyD,uBAAU,CAACC,MAAM,CAAC;EAC/B9B,OAAO,EAAE;IACP+B,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE,QAAQ;IAClBC,eAAe,EAAE;EACnB,CAAC;EACDhC,WAAW,EAAE;IACX8B,YAAY,EAAE;EAChB,CAAC;EACDzB,KAAK,EAAE;IACL5B,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDN,OAAO,EAAE;IACP,GAAGwD,uBAAU,CAACK,YAAY;IAC1BC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACD5D,UAAU,EAAE;IACVE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVoD,YAAY,EAAE,EAAE;IAChBE,eAAe,EAAE,qBAAqB;IACtCE,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useMediaSource = exports.MediaSourceProvider = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
* The message a bubble's pictures and videos belong to. MediaMessage provides
|
|
10
|
+
* it, and the image / video / album components that open the viewer read it,
|
|
11
|
+
* so the viewer knows what its Reply and Delete act on without every card in
|
|
12
|
+
* between passing the message along.
|
|
13
|
+
*/
|
|
14
|
+
const MediaSourceContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
15
|
+
const MediaSourceProvider = exports.MediaSourceProvider = MediaSourceContext.Provider;
|
|
16
|
+
const useMediaSource = () => (0, _react.useContext)(MediaSourceContext);
|
|
17
|
+
exports.useMediaSource = useMediaSource;
|
|
18
|
+
//# sourceMappingURL=MediaSourceContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","MediaSourceContext","createContext","undefined","MediaSourceProvider","exports","Provider","useMediaSource","useContext"],"sourceRoot":"../../../src","sources":["context/MediaSourceContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,gBAAG,IAAAC,oBAAa,EAA8BC,SAAS,CAAC;AAEzE,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGH,kBAAkB,CAACK,QAAQ;AAEvD,MAAMC,cAAc,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACP,kBAAkB,CAAC;AAACI,OAAA,CAAAE,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.MODAL_COMPONENTS = void 0;
|
|
|
7
7
|
var _MODAL_TYPES = require("./MODAL_TYPES");
|
|
8
8
|
var _ChatProfileModal = _interopRequireDefault(require("../../components/Modals/ChatProfileModal/ChatProfileModal"));
|
|
9
9
|
var _FilePreviewModal = _interopRequireDefault(require("../../components/Modals/FilePreviewModal/FilePreviewModal"));
|
|
10
|
-
var _MessageSearchModal =
|
|
10
|
+
var _MessageSearchModal = _interopRequireWildcard(require("../../components/Modals/MessageSearchModal/MessageSearchModal"));
|
|
11
11
|
var _PublicChatsModal = _interopRequireDefault(require("../../components/Modals/PublicChatsModal/PublicChatsModal"));
|
|
12
12
|
var _NewChatModal = _interopRequireDefault(require("../../components/Modals/NewChatModal/NewChatModal"));
|
|
13
13
|
var _BlockedUsersModal = _interopRequireDefault(require("../../components/Modals/SettingsModals/BlockedUsers/BlockedUsersModal"));
|
|
@@ -19,6 +19,7 @@ var _VisibilityModal = _interopRequireDefault(require("../../components/Modals/S
|
|
|
19
19
|
var _ChangePasswordModal = _interopRequireDefault(require("../../components/Modals/SettingsModals/ChangePassword/ChangePasswordModal"));
|
|
20
20
|
var _UserProfileModal = _interopRequireDefault(require("../../components/Modals/UserProfileModal/UserProfileModal"));
|
|
21
21
|
var _UserSettingsModal = _interopRequireDefault(require("../../components/Modals/UserSettingsModal/UserSettingsModal"));
|
|
22
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
22
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
24
|
// Modal-id → component registry. Split out from MODAL_TYPES.ts to
|
|
24
25
|
// break the require cycle between the type constants and the modal
|
|
@@ -39,6 +40,7 @@ const MODAL_COMPONENTS = exports.MODAL_COMPONENTS = {
|
|
|
39
40
|
[_MODAL_TYPES.MODAL_TYPES.BLOCKED_USERS]: _BlockedUsersModal.default,
|
|
40
41
|
[_MODAL_TYPES.MODAL_TYPES.FILE_PREVIEW]: _FilePreviewModal.default,
|
|
41
42
|
[_MODAL_TYPES.MODAL_TYPES.MESSAGE_SEARCH]: _MessageSearchModal.default,
|
|
43
|
+
[_MODAL_TYPES.MODAL_TYPES.CHAT_MESSAGE_SEARCH]: _MessageSearchModal.ChatMessageSearchModal,
|
|
42
44
|
[_MODAL_TYPES.MODAL_TYPES.PUBLIC_CHATS]: _PublicChatsModal.default
|
|
43
45
|
};
|
|
44
46
|
//# sourceMappingURL=MODAL_COMPONENTS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_MODAL_TYPES","require","_ChatProfileModal","_interopRequireDefault","_FilePreviewModal","_MessageSearchModal","_PublicChatsModal","_NewChatModal","_BlockedUsersModal","_DocumentSharesModal","_ManageDataModal","_ProfileShares","_Referrals","_VisibilityModal","_ChangePasswordModal","_UserProfileModal","_UserSettingsModal","e","__esModule","default","MODAL_COMPONENTS","exports","MODAL_TYPES","SETTINGS","UserSettingsModal","NEW_CHAT","NewChatModal","PROFILE","UserProfileModal","CHAT_PROFILE","ChatProfileModal","MANAGE_DATA","ManageDataModal","VISIBILITY","VisibilityModal","CHANGE_PASSWORD","ChangePasswordModal","REFERRALS","ReferralsModal","DOCUMENT_SHARES","DocumentSharesModal","PROFILE_SHARES","ProfileSharesModal","BLOCKED_USERS","BlockedUsersModal","FILE_PREVIEW","FilePreviewModal","MESSAGE_SEARCH","MessageSearchModal","PUBLIC_CHATS","PublicChatsModal"],"sourceRoot":"../../../../src","sources":["helpers/constants/MODAL_COMPONENTS.tsx"],"mappings":";;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,mBAAA,
|
|
1
|
+
{"version":3,"names":["_MODAL_TYPES","require","_ChatProfileModal","_interopRequireDefault","_FilePreviewModal","_MessageSearchModal","_interopRequireWildcard","_PublicChatsModal","_NewChatModal","_BlockedUsersModal","_DocumentSharesModal","_ManageDataModal","_ProfileShares","_Referrals","_VisibilityModal","_ChangePasswordModal","_UserProfileModal","_UserSettingsModal","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MODAL_COMPONENTS","exports","MODAL_TYPES","SETTINGS","UserSettingsModal","NEW_CHAT","NewChatModal","PROFILE","UserProfileModal","CHAT_PROFILE","ChatProfileModal","MANAGE_DATA","ManageDataModal","VISIBILITY","VisibilityModal","CHANGE_PASSWORD","ChangePasswordModal","REFERRALS","ReferralsModal","DOCUMENT_SHARES","DocumentSharesModal","PROFILE_SHARES","ProfileSharesModal","BLOCKED_USERS","BlockedUsersModal","FILE_PREVIEW","FilePreviewModal","MESSAGE_SEARCH","MessageSearchModal","CHAT_MESSAGE_SEARCH","ChatMessageSearchModal","PUBLIC_CHATS","PublicChatsModal"],"sourceRoot":"../../../../src","sources":["helpers/constants/MODAL_COMPONENTS.tsx"],"mappings":";;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,mBAAA,GAAAC,uBAAA,CAAAL,OAAA;AAGA,IAAAM,iBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,kBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,oBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,gBAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,cAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,UAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,gBAAA,GAAAX,sBAAA,CAAAF,OAAA;AACA,IAAAc,oBAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,iBAAA,GAAAb,sBAAA,CAAAF,OAAA;AACA,IAAAgB,kBAAA,GAAAd,sBAAA,CAAAF,OAAA;AAA4F,SAAAK,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,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B;EAClD,CAACd,wBAAW,CAACe,SAAS,GAAGC,kBAAc;EACvC,CAAChB,wBAAW,CAACiB,eAAe,GAAGC,4BAAmB;EAClD,CAAClB,wBAAW,CAACmB,cAAc,GAAGC,sBAAkB;EAChD,CAACpB,wBAAW,CAACqB,aAAa,GAAGC,0BAAiB;EAC9C,CAACtB,wBAAW,CAACuB,YAAY,GAAGC,yBAAgB;EAC5C,CAACxB,wBAAW,CAACyB,cAAc,GAAGC,2BAAkB;EAChD,CAAC1B,wBAAW,CAAC2B,mBAAmB,GAAGC,0CAAsB;EACzD,CAAC5B,wBAAW,CAAC6B,YAAY,GAAGC;AAC9B,CAAC","ignoreList":[]}
|
|
@@ -29,6 +29,8 @@ const MODAL_TYPES = exports.MODAL_TYPES = {
|
|
|
29
29
|
FILE_PREVIEW: 'file_preview',
|
|
30
30
|
NEW_CHAT: 'new_chat',
|
|
31
31
|
MESSAGE_SEARCH: 'message_search',
|
|
32
|
+
/** Message search locked to the open chat, reached from its profile. */
|
|
33
|
+
CHAT_MESSAGE_SEARCH: 'chat_message_search',
|
|
32
34
|
PUBLIC_CHATS: 'public_chats'
|
|
33
35
|
};
|
|
34
36
|
//# sourceMappingURL=MODAL_TYPES.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MODAL_TYPES","exports","SETTINGS","PROFILE","CHAT_PROFILE","MANAGE_DATA","VISIBILITY","CHANGE_PASSWORD","PROFILE_SHARES","DOCUMENT_SHARES","BLOCKED_USERS","REFERRALS","FILE_PREVIEW","NEW_CHAT","MESSAGE_SEARCH","PUBLIC_CHATS"],"sourceRoot":"../../../../src","sources":["helpers/constants/MODAL_TYPES.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,YAAY,EAAE,aAAa;EAC3BC,WAAW,EAAE,YAAY;EACzBC,UAAU,EAAE,YAAY;EACxBC,eAAe,EAAE,iBAAiB;EAElCC,cAAc,EAAE,gBAAgB;EAChCC,eAAe,EAAE,iBAAiB;EAClCC,aAAa,EAAE,eAAe;EAE9BC,SAAS,EAAE,WAAW;EAEtBC,YAAY,EAAE,cAAc;EAE5BC,QAAQ,EAAE,UAAU;EAEpBC,cAAc,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"names":["MODAL_TYPES","exports","SETTINGS","PROFILE","CHAT_PROFILE","MANAGE_DATA","VISIBILITY","CHANGE_PASSWORD","PROFILE_SHARES","DOCUMENT_SHARES","BLOCKED_USERS","REFERRALS","FILE_PREVIEW","NEW_CHAT","MESSAGE_SEARCH","CHAT_MESSAGE_SEARCH","PUBLIC_CHATS"],"sourceRoot":"../../../../src","sources":["helpers/constants/MODAL_TYPES.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,YAAY,EAAE,aAAa;EAC3BC,WAAW,EAAE,YAAY;EACzBC,UAAU,EAAE,YAAY;EACxBC,eAAe,EAAE,iBAAiB;EAElCC,cAAc,EAAE,gBAAgB;EAChCC,eAAe,EAAE,iBAAiB;EAClCC,aAAa,EAAE,eAAe;EAE9BC,SAAS,EAAE,WAAW;EAEtBC,YAAY,EAAE,cAAc;EAE5BC,QAAQ,EAAE,UAAU;EAEpBC,cAAc,EAAE,gBAAgB;EAChC;EACAC,mBAAmB,EAAE,qBAAqB;EAC1CC,YAAY,EAAE;AAChB,CAAC","ignoreList":[]}
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.showsStandaloneDiscoverButton = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* "Discover chats" lives in the room list menu sheet. A host that takes the
|
|
9
|
-
* burger over (`headerMenu` as a function)
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* header
|
|
13
|
-
*
|
|
9
|
+
* burger over (`headerMenu` as a function) would otherwise have no obvious
|
|
10
|
+
* way to reach the directory, so it also gets a button of its own in the
|
|
11
|
+
* room list header. `chatHeaderSettings.disableMenu` does not count: the
|
|
12
|
+
* header avatar still opens the sheet, Discover included, and a second
|
|
13
|
+
* compass next to it was a duplicate. `disableRoomMenu` removes the menu
|
|
14
|
+
* entry point, and with it the button; `disablePublicChatsDirectory`
|
|
15
|
+
* removes the feature altogether.
|
|
14
16
|
*/
|
|
15
|
-
const showsStandaloneDiscoverButton = config => !config?.disablePublicChatsDirectory && !config?.disableRoomMenu &&
|
|
17
|
+
const showsStandaloneDiscoverButton = config => !config?.disablePublicChatsDirectory && !config?.disableRoomMenu && typeof config?.headerMenu === 'function';
|
|
16
18
|
exports.showsStandaloneDiscoverButton = showsStandaloneDiscoverButton;
|
|
17
19
|
//# sourceMappingURL=publicChatsEntry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["showsStandaloneDiscoverButton","config","disablePublicChatsDirectory","disableRoomMenu","
|
|
1
|
+
{"version":3,"names":["showsStandaloneDiscoverButton","config","disablePublicChatsDirectory","disableRoomMenu","headerMenu","exports"],"sourceRoot":"../../../src","sources":["helpers/publicChatsEntry.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,6BAA6B,GAAIC,MAAgB,IAC5D,CAACA,MAAM,EAAEC,2BAA2B,IACpC,CAACD,MAAM,EAAEE,eAAe,IACxB,OAAOF,MAAM,EAAEG,UAAU,KAAK,UAAU;AAACC,OAAA,CAAAL,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.withChatSiblings = exports.collectRoomMedia = void 0;
|
|
7
|
+
var _attachments = require("./attachments");
|
|
8
|
+
var _fileKind = require("./fileKind");
|
|
9
|
+
var _secureFileUrl = require("./secureFileUrl");
|
|
10
|
+
var _parseMessageReference = require("./parseMessageReference");
|
|
11
|
+
var _displayName = require("./displayName");
|
|
12
|
+
var _isOwnMessage = require("./isOwnMessage");
|
|
13
|
+
/**
|
|
14
|
+
* Every picture and video of the room's loaded history, newest first, each
|
|
15
|
+
* carrying the message it came from so the viewer's Reply and Delete act on
|
|
16
|
+
* the right one (same rules as a bubble: Delete on one's own, Reply where
|
|
17
|
+
* replies are on).
|
|
18
|
+
*/
|
|
19
|
+
const collectRoomMedia = (messages, roomJid, {
|
|
20
|
+
me,
|
|
21
|
+
fileToken,
|
|
22
|
+
interactive,
|
|
23
|
+
repliesOn
|
|
24
|
+
}) => {
|
|
25
|
+
const files = [];
|
|
26
|
+
for (let i = (messages?.length ?? 0) - 1; i >= 0; i--) {
|
|
27
|
+
const message = messages[i];
|
|
28
|
+
if (message.isMediafile !== 'true' || message.isDeleted || message.pending || message.clientEncrypted === 'true' || !message.id) {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const parent = (0, _parseMessageReference.parseMessageReference)(message);
|
|
32
|
+
const sentAt = new Date(message.date).getTime();
|
|
33
|
+
const source = {
|
|
34
|
+
messageId: message.id,
|
|
35
|
+
roomJid: message.roomJid || roomJid,
|
|
36
|
+
own: interactive && (0, _isOwnMessage.isOwnMessage)(message, me),
|
|
37
|
+
replyTo: interactive && repliesOn ? parent ? {
|
|
38
|
+
id: parent.id,
|
|
39
|
+
chatJID: parent.roomJid || message.roomJid || roomJid
|
|
40
|
+
} : {
|
|
41
|
+
id: message.id,
|
|
42
|
+
chatJID: message.roomJid || roomJid
|
|
43
|
+
} : undefined,
|
|
44
|
+
senderName: (0, _displayName.composeName)(message.user?.firstName, message.user?.lastName) || message.user?.name || undefined,
|
|
45
|
+
timestamp: Number.isFinite(sentAt) ? sentAt : undefined
|
|
46
|
+
};
|
|
47
|
+
for (const attachment of (0, _attachments.getMessageAttachments)(message)) {
|
|
48
|
+
if (!attachment.location) {
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const kind = (0, _fileKind.getFileKind)({
|
|
52
|
+
mimetype: attachment.mimetype,
|
|
53
|
+
name: (0, _attachments.getAttachmentName)(attachment),
|
|
54
|
+
url: attachment.location,
|
|
55
|
+
duration: attachment.duration
|
|
56
|
+
});
|
|
57
|
+
if (kind !== 'image' && kind !== 'video') {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
files.push({
|
|
61
|
+
fileName: (0, _attachments.getAttachmentName)(attachment),
|
|
62
|
+
originalName: attachment.originalName,
|
|
63
|
+
fileURL: (0, _secureFileUrl.appendFileToken)(attachment.location, fileToken) || attachment.location,
|
|
64
|
+
mimetype: attachment.mimetype || (kind === 'image' ? 'image/jpeg' : 'video/mp4'),
|
|
65
|
+
duration: attachment.duration,
|
|
66
|
+
previewURL: (0, _secureFileUrl.appendFileToken)(attachment.locationPreview, fileToken),
|
|
67
|
+
source
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return files;
|
|
72
|
+
};
|
|
73
|
+
exports.collectRoomMedia = collectRoomMedia;
|
|
74
|
+
const sentAt = message => new Date(message.date).getTime() || 0;
|
|
75
|
+
|
|
76
|
+
/** A thread-only reply: shown in its thread, not in the channel. */
|
|
77
|
+
const threadParentOf = message => message.mainMessage && message.showInChannel !== 'true' ? (0, _parseMessageReference.parseMessageReference)(message)?.id ?? null : null;
|
|
78
|
+
|
|
79
|
+
/** The file's address without its access token, which may differ per copy. */
|
|
80
|
+
const bareUrl = url => (url || '').split('?')[0];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The media feed the viewer pages through when a picture or video is opened
|
|
84
|
+
* from a bubble: every picture and video of the list that bubble sits in (the
|
|
85
|
+
* channel, or the one thread for a thread-only reply), oldest first so a
|
|
86
|
+
* swipe to the left goes forward in time, the way the chat reads. The opened
|
|
87
|
+
* file comes back with that feed as its siblings; null when the file is not
|
|
88
|
+
* in the loaded history (the caller then keeps what it was opened with).
|
|
89
|
+
*/
|
|
90
|
+
const withChatSiblings = (file, messages, options) => {
|
|
91
|
+
const source = file.source;
|
|
92
|
+
if (!source || !messages?.length) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
const opened = messages.find(m => String(m.id) === String(source.messageId));
|
|
96
|
+
if (!opened) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
const thread = threadParentOf(opened);
|
|
100
|
+
// collectRoomMedia walks from the end, so newest-first in gives oldest
|
|
101
|
+
// first out, with an album's files still in their own order.
|
|
102
|
+
const scoped = messages.filter(m => threadParentOf(m) === thread).sort((a, b) => sentAt(b) - sentAt(a));
|
|
103
|
+
const feed = collectRoomMedia(scoped, source.roomJid, options);
|
|
104
|
+
const url = bareUrl(file.fileURL);
|
|
105
|
+
const index = feed.findIndex(f => f.source?.messageId === source.messageId && bareUrl(f.fileURL) === url);
|
|
106
|
+
if (index < 0) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
// The bubble's own rules for Reply and Delete stay with the opened file.
|
|
110
|
+
return {
|
|
111
|
+
...feed[index],
|
|
112
|
+
source,
|
|
113
|
+
siblings: feed,
|
|
114
|
+
index
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
exports.withChatSiblings = withChatSiblings;
|
|
118
|
+
//# sourceMappingURL=roomMedia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_attachments","require","_fileKind","_secureFileUrl","_parseMessageReference","_displayName","_isOwnMessage","collectRoomMedia","messages","roomJid","me","fileToken","interactive","repliesOn","files","i","length","message","isMediafile","isDeleted","pending","clientEncrypted","id","parent","parseMessageReference","sentAt","Date","date","getTime","source","messageId","own","isOwnMessage","replyTo","chatJID","undefined","senderName","composeName","user","firstName","lastName","name","timestamp","Number","isFinite","attachment","getMessageAttachments","location","kind","getFileKind","mimetype","getAttachmentName","url","duration","push","fileName","originalName","fileURL","appendFileToken","previewURL","locationPreview","exports","threadParentOf","mainMessage","showInChannel","bareUrl","split","withChatSiblings","file","options","opened","find","m","String","thread","scoped","filter","sort","a","b","feed","index","findIndex","f","siblings"],"sourceRoot":"../../../src","sources":["helpers/roomMedia.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMM,gBAAgB,GAAGA,CAC9BC,QAAgC,EAChCC,OAAe,EACf;EAAEC,EAAE;EAAEC,SAAS;EAAEC,WAAW;EAAEC;AAAwB,CAAC,KACvC;EAChB,MAAMC,KAAkB,GAAG,EAAE;EAC7B,KAAK,IAAIC,CAAC,GAAG,CAACP,QAAQ,EAAEQ,MAAM,IAAI,CAAC,IAAI,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACrD,MAAME,OAAO,GAAGT,QAAQ,CAAEO,CAAC,CAAE;IAC7B,IACEE,OAAO,CAACC,WAAW,KAAK,MAAM,IAC9BD,OAAO,CAACE,SAAS,IACjBF,OAAO,CAACG,OAAO,IACfH,OAAO,CAACI,eAAe,KAAK,MAAM,IAClC,CAACJ,OAAO,CAACK,EAAE,EACX;MACA;IACF;IACA,MAAMC,MAAM,GAAG,IAAAC,4CAAqB,EAACP,OAAO,CAAC;IAC7C,MAAMQ,MAAM,GAAG,IAAIC,IAAI,CAACT,OAAO,CAACU,IAAW,CAAC,CAACC,OAAO,CAAC,CAAC;IACtD,MAAMC,MAAM,GAA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CAAC+D,IAAI,CAAEC,CAAC,IAAKC,MAAM,CAACD,CAAC,CAAClD,EAAE,CAAC,KAAKmD,MAAM,CAAC5C,MAAM,CAACC,SAAS,CAAC,CAAC;EAC9E,IAAI,CAACwC,MAAM,EAAE;IAAC,OAAO,IAAI;EAAC;EAE1B,MAAMI,MAAM,GAAGZ,cAAc,CAACQ,MAAM,CAAC;EACrC;EACA;EACA,MAAMK,MAAM,GAAGnE,QAAQ,CACpBoE,MAAM,CAAEJ,CAAC,IAAKV,cAAc,CAACU,CAAC,CAAC,KAAKE,MAAM,CAAC,CAC3CG,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKtD,MAAM,CAACsD,CAAC,CAAC,GAAGtD,MAAM,CAACqD,CAAC,CAAC,CAAC;EACxC,MAAME,IAAI,GAAGzE,gBAAgB,CAACoE,MAAM,EAAE9C,MAAM,CAACpB,OAAO,EAAE4D,OAAO,CAAC;EAE9D,MAAMjB,GAAG,GAAGa,OAAO,CAACG,IAAI,CAACX,OAAO,CAAC;EACjC,MAAMwB,KAAK,GAAGD,IAAI,CAACE,SAAS,CACzBC,CAAC,IACAA,CAAC,CAACtD,MAAM,EAAEC,SAAS,KAAKD,MAAM,CAACC,SAAS,IAAImC,OAAO,CAACkB,CAAC,CAAC1B,OAAO,CAAC,KAAKL,GACvE,CAAC;EACD,IAAI6B,KAAK,GAAG,CAAC,EAAE;IAAC,OAAO,IAAI;EAAC;EAC5B;EACA,OAAO;IAAE,GAAGD,IAAI,CAACC,KAAK,CAAE;IAAEpD,MAAM;IAAEuD,QAAQ,EAAEJ,IAAI;IAAEC;EAAM,CAAC;AAC3D,CAAC;AAACpB,OAAA,CAAAM,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -163,6 +163,9 @@ const en = {
|
|
|
163
163
|
'action.cancel': 'Cancel',
|
|
164
164
|
'action.save': 'Save',
|
|
165
165
|
'action.delete': 'Delete',
|
|
166
|
+
'action.reply': 'Reply',
|
|
167
|
+
'video.cantPlay': 'This video can\'t be played',
|
|
168
|
+
'video.cantPlayHint': 'Tap the save icon above to download it.',
|
|
166
169
|
'action.leave': 'Leave',
|
|
167
170
|
'action.muted': 'Muted',
|
|
168
171
|
'action.unmuted': 'Unmuted',
|
|
@@ -295,6 +298,8 @@ const en = {
|
|
|
295
298
|
'modal.chatProfile.removePhoto': 'Remove photo',
|
|
296
299
|
'modal.chatProfile.membersLabel': 'Members: {count}',
|
|
297
300
|
'modal.chatProfile.membersUnavailable': 'Member list unavailable',
|
|
301
|
+
'modal.chatProfile.media': 'Media',
|
|
302
|
+
'modal.chatProfile.mediaEmpty': 'No photos or videos yet',
|
|
298
303
|
'modal.chatProfile.removeMember': 'Remove from this chat?',
|
|
299
304
|
'modal.chatProfile.memberListUnavailable': 'Member list unavailable',
|
|
300
305
|
'modal.deleteChat.title': 'Delete this chat ?',
|
|
@@ -304,6 +309,7 @@ const en = {
|
|
|
304
309
|
'modal.addMembers.userIdPlaceholder': 'Enter User Id',
|
|
305
310
|
'modal.leaveChat.title': 'Leave Chat',
|
|
306
311
|
'modal.leaveChat.description': 'Are you sure you want to leave this chat?',
|
|
312
|
+
'modal.leaveChat.descriptionNamed': 'Are you sure you want to leave {name}?',
|
|
307
313
|
'modal.report.chatTitle': 'Report Chat',
|
|
308
314
|
'modal.report.messageTitle': 'Report Message',
|
|
309
315
|
'modal.report.otherDetails': 'Please enter additional details relevant to your report.',
|
|
@@ -567,6 +573,9 @@ const fr = {
|
|
|
567
573
|
'action.cancel': 'Annuler',
|
|
568
574
|
'action.save': 'Enregistrer',
|
|
569
575
|
'action.delete': 'Supprimer',
|
|
576
|
+
'action.reply': 'Répondre',
|
|
577
|
+
'video.cantPlay': 'Impossible de lire cette vidéo',
|
|
578
|
+
'video.cantPlayHint': 'Touchez l\'icône d\'enregistrement en haut pour la télécharger.',
|
|
570
579
|
'action.leave': 'Quitter',
|
|
571
580
|
'action.muted': 'En sourdine',
|
|
572
581
|
'action.unmuted': 'Activé',
|
|
@@ -699,6 +708,8 @@ const fr = {
|
|
|
699
708
|
'modal.chatProfile.removePhoto': 'Supprimer la photo',
|
|
700
709
|
'modal.chatProfile.membersLabel': 'Membres : {count}',
|
|
701
710
|
'modal.chatProfile.membersUnavailable': 'Liste des membres indisponible',
|
|
711
|
+
'modal.chatProfile.media': 'Médias',
|
|
712
|
+
'modal.chatProfile.mediaEmpty': 'Aucune photo ni vidéo pour l\'instant',
|
|
702
713
|
'modal.chatProfile.removeMember': 'Retirer de cette discussion ?',
|
|
703
714
|
'modal.chatProfile.memberListUnavailable': 'Liste des membres indisponible',
|
|
704
715
|
'modal.deleteChat.title': 'Supprimer cette discussion ?',
|
|
@@ -708,6 +719,7 @@ const fr = {
|
|
|
708
719
|
'modal.addMembers.userIdPlaceholder': "Entrez l'ID utilisateur",
|
|
709
720
|
'modal.leaveChat.title': 'Quitter la discussion',
|
|
710
721
|
'modal.leaveChat.description': 'Voulez-vous vraiment quitter cette discussion ?',
|
|
722
|
+
'modal.leaveChat.descriptionNamed': 'Voulez-vous vraiment quitter {name} ?',
|
|
711
723
|
'modal.report.chatTitle': 'Signaler la discussion',
|
|
712
724
|
'modal.report.messageTitle': 'Signaler le message',
|
|
713
725
|
'modal.report.otherDetails': 'Veuillez indiquer des détails supplémentaires concernant votre signalement.',
|
|
@@ -971,6 +983,9 @@ const es = {
|
|
|
971
983
|
'action.cancel': 'Cancelar',
|
|
972
984
|
'action.save': 'Guardar',
|
|
973
985
|
'action.delete': 'Eliminar',
|
|
986
|
+
'action.reply': 'Responder',
|
|
987
|
+
'video.cantPlay': 'No se puede reproducir este video',
|
|
988
|
+
'video.cantPlayHint': 'Toca el icono de guardar de arriba para descargarlo.',
|
|
974
989
|
'action.leave': 'Salir',
|
|
975
990
|
'action.muted': 'Silenciado',
|
|
976
991
|
'action.unmuted': 'Activado',
|
|
@@ -1103,6 +1118,8 @@ const es = {
|
|
|
1103
1118
|
'modal.chatProfile.removePhoto': 'Quitar la foto',
|
|
1104
1119
|
'modal.chatProfile.membersLabel': 'Miembros: {count}',
|
|
1105
1120
|
'modal.chatProfile.membersUnavailable': 'Lista de miembros no disponible',
|
|
1121
|
+
'modal.chatProfile.media': 'Multimedia',
|
|
1122
|
+
'modal.chatProfile.mediaEmpty': 'Aún no hay fotos ni videos',
|
|
1106
1123
|
'modal.chatProfile.removeMember': '¿Quitar de este chat?',
|
|
1107
1124
|
'modal.chatProfile.memberListUnavailable': 'Lista de miembros no disponible',
|
|
1108
1125
|
'modal.deleteChat.title': '¿Eliminar este chat?',
|
|
@@ -1112,6 +1129,7 @@ const es = {
|
|
|
1112
1129
|
'modal.addMembers.userIdPlaceholder': 'Introduce el ID de usuario',
|
|
1113
1130
|
'modal.leaveChat.title': 'Salir del chat',
|
|
1114
1131
|
'modal.leaveChat.description': '¿Seguro que quieres salir de este chat?',
|
|
1132
|
+
'modal.leaveChat.descriptionNamed': '¿Seguro que quieres salir de {name}?',
|
|
1115
1133
|
'modal.report.chatTitle': 'Reportar chat',
|
|
1116
1134
|
'modal.report.messageTitle': 'Reportar mensaje',
|
|
1117
1135
|
'modal.report.otherDetails': 'Introduce detalles adicionales relevantes para tu reporte.',
|
|
@@ -1375,6 +1393,9 @@ const pt = {
|
|
|
1375
1393
|
'action.cancel': 'Cancelar',
|
|
1376
1394
|
'action.save': 'Guardar',
|
|
1377
1395
|
'action.delete': 'Eliminar',
|
|
1396
|
+
'action.reply': 'Responder',
|
|
1397
|
+
'video.cantPlay': 'Não é possível reproduzir este vídeo',
|
|
1398
|
+
'video.cantPlayHint': 'Toque no ícone de guardar acima para o transferir.',
|
|
1378
1399
|
'action.leave': 'Sair',
|
|
1379
1400
|
'action.muted': 'Muted',
|
|
1380
1401
|
'action.unmuted': 'Unmuted',
|
|
@@ -1507,6 +1528,8 @@ const pt = {
|
|
|
1507
1528
|
'modal.chatProfile.removePhoto': 'Remover foto',
|
|
1508
1529
|
'modal.chatProfile.membersLabel': 'Membros: {count}',
|
|
1509
1530
|
'modal.chatProfile.membersUnavailable': 'Lista de membros indisponível',
|
|
1531
|
+
'modal.chatProfile.media': 'Multimédia',
|
|
1532
|
+
'modal.chatProfile.mediaEmpty': 'Ainda não há fotos nem vídeos',
|
|
1510
1533
|
'modal.chatProfile.removeMember': 'Remover deste chat?',
|
|
1511
1534
|
'modal.chatProfile.memberListUnavailable': 'Lista de membros indisponível',
|
|
1512
1535
|
'modal.deleteChat.title': 'Eliminar este chat?',
|
|
@@ -1516,6 +1539,7 @@ const pt = {
|
|
|
1516
1539
|
'modal.addMembers.userIdPlaceholder': 'Introduza o ID do utilizador',
|
|
1517
1540
|
'modal.leaveChat.title': 'Sair do chat',
|
|
1518
1541
|
'modal.leaveChat.description': 'Tem a certeza de que quer sair deste chat?',
|
|
1542
|
+
'modal.leaveChat.descriptionNamed': 'Tem a certeza de que quer sair de {name}?',
|
|
1519
1543
|
'modal.report.chatTitle': 'Denunciar chat',
|
|
1520
1544
|
'modal.report.messageTitle': 'Denunciar mensagem',
|
|
1521
1545
|
'modal.report.otherDetails': 'Indique detalhes adicionais relevantes para a sua denúncia.',
|
|
@@ -1779,6 +1803,9 @@ const ht = {
|
|
|
1779
1803
|
'action.cancel': 'Anile',
|
|
1780
1804
|
'action.save': 'Anrejistre',
|
|
1781
1805
|
'action.delete': 'Efase',
|
|
1806
|
+
'action.reply': 'Reponn',
|
|
1807
|
+
'video.cantPlay': 'Videyo sa a pa ka jwe',
|
|
1808
|
+
'video.cantPlayHint': 'Peze ikòn sove anwo a pou telechaje li.',
|
|
1782
1809
|
'action.leave': 'Kite',
|
|
1783
1810
|
'action.muted': 'Muted',
|
|
1784
1811
|
'action.unmuted': 'Unmuted',
|
|
@@ -1911,6 +1938,8 @@ const ht = {
|
|
|
1911
1938
|
'modal.chatProfile.removePhoto': 'Retire foto a',
|
|
1912
1939
|
'modal.chatProfile.membersLabel': 'Manm: {count}',
|
|
1913
1940
|
'modal.chatProfile.membersUnavailable': 'Lis manm yo pa disponib',
|
|
1941
|
+
'modal.chatProfile.media': 'Medya',
|
|
1942
|
+
'modal.chatProfile.mediaEmpty': 'Poko gen foto ni videyo',
|
|
1914
1943
|
'modal.chatProfile.removeMember': 'Retire nan chat sa a?',
|
|
1915
1944
|
'modal.chatProfile.memberListUnavailable': 'Lis manm yo pa disponib',
|
|
1916
1945
|
'modal.deleteChat.title': 'Efase chat sa a?',
|
|
@@ -1920,6 +1949,7 @@ const ht = {
|
|
|
1920
1949
|
'modal.addMembers.userIdPlaceholder': 'Antre ID itilizatè a',
|
|
1921
1950
|
'modal.leaveChat.title': 'Kite chat la',
|
|
1922
1951
|
'modal.leaveChat.description': 'Èske ou sèten ou vle kite chat sa a?',
|
|
1952
|
+
'modal.leaveChat.descriptionNamed': 'Èske ou sèten ou vle kite {name}?',
|
|
1923
1953
|
'modal.report.chatTitle': 'Rapòte chat la',
|
|
1924
1954
|
'modal.report.messageTitle': 'Rapòte mesaj la',
|
|
1925
1955
|
'modal.report.otherDetails': 'Tanpri antre detay anplis ki gen rapò ak rapò ou a.',
|
|
@@ -2183,6 +2213,9 @@ const zh = {
|
|
|
2183
2213
|
'action.cancel': '取消',
|
|
2184
2214
|
'action.save': '保存',
|
|
2185
2215
|
'action.delete': '删除',
|
|
2216
|
+
'action.reply': '回复',
|
|
2217
|
+
'video.cantPlay': '无法播放此视频',
|
|
2218
|
+
'video.cantPlayHint': '点击上方的保存图标下载。',
|
|
2186
2219
|
'action.leave': '退出',
|
|
2187
2220
|
'action.muted': 'Muted',
|
|
2188
2221
|
'action.unmuted': 'Unmuted',
|
|
@@ -2315,6 +2348,8 @@ const zh = {
|
|
|
2315
2348
|
'modal.chatProfile.removePhoto': '移除图片',
|
|
2316
2349
|
'modal.chatProfile.membersLabel': '成员:{count}',
|
|
2317
2350
|
'modal.chatProfile.membersUnavailable': '成员列表不可用',
|
|
2351
|
+
'modal.chatProfile.media': '媒体',
|
|
2352
|
+
'modal.chatProfile.mediaEmpty': '暂无图片或视频',
|
|
2318
2353
|
'modal.chatProfile.removeMember': '将其移出该聊天?',
|
|
2319
2354
|
'modal.chatProfile.memberListUnavailable': '成员列表不可用',
|
|
2320
2355
|
'modal.deleteChat.title': '删除此聊天?',
|
|
@@ -2324,6 +2359,7 @@ const zh = {
|
|
|
2324
2359
|
'modal.addMembers.userIdPlaceholder': '输入用户 ID',
|
|
2325
2360
|
'modal.leaveChat.title': '退出聊天',
|
|
2326
2361
|
'modal.leaveChat.description': '确定要退出此聊天吗?',
|
|
2362
|
+
'modal.leaveChat.descriptionNamed': '确定要退出 {name} 吗?',
|
|
2327
2363
|
'modal.report.chatTitle': '举报聊天',
|
|
2328
2364
|
'modal.report.messageTitle': '举报消息',
|
|
2329
2365
|
'modal.report.otherDetails': '请填写与您举报相关的补充信息。',
|