stream-chat-react-native-core 5.29.1-beta.4 → 5.30.0-beta.2
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/lib/commonjs/components/Channel/Channel.js +4 -2
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -2
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +11 -0
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +12 -27
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +10 -12
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +94 -58
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js +48 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +5 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +7 -10
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js +6 -2
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +9 -6
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +30 -27
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +3 -2
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -0
- package/lib/commonjs/i18n/es.json +14 -13
- package/lib/commonjs/i18n/fr.json +14 -13
- package/lib/commonjs/i18n/he.json +14 -13
- package/lib/commonjs/i18n/hi.json +14 -13
- package/lib/commonjs/i18n/it.json +14 -13
- package/lib/commonjs/i18n/ja.json +14 -13
- package/lib/commonjs/i18n/ko.json +14 -13
- package/lib/commonjs/i18n/nl.json +14 -13
- package/lib/commonjs/i18n/pt-BR.json +14 -13
- package/lib/commonjs/i18n/ru.json +14 -13
- package/lib/commonjs/i18n/tr.json +14 -13
- package/lib/commonjs/utils/getDateString.js +31 -0
- package/lib/commonjs/utils/getDateString.js.map +1 -0
- package/lib/commonjs/utils/utils.js +5 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +4 -2
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -2
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +6 -14
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/Message/Message.js +11 -0
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +12 -27
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +10 -12
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js +55 -0
- package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +94 -58
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -0
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js +48 -0
- package/lib/module/components/Message/MessageSimple/MessageTimestamp.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +5 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +7 -10
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js +6 -2
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +9 -6
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +30 -27
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +3 -2
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/index.js +11 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +3 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +1 -0
- package/lib/module/i18n/es.json +14 -13
- package/lib/module/i18n/fr.json +14 -13
- package/lib/module/i18n/he.json +14 -13
- package/lib/module/i18n/hi.json +14 -13
- package/lib/module/i18n/it.json +14 -13
- package/lib/module/i18n/ja.json +14 -13
- package/lib/module/i18n/ko.json +14 -13
- package/lib/module/i18n/nl.json +14 -13
- package/lib/module/i18n/pt-BR.json +14 -13
- package/lib/module/i18n/ru.json +14 -13
- package/lib/module/i18n/tr.json +14 -13
- package/lib/module/utils/getDateString.js +31 -0
- package/lib/module/utils/getDateString.js.map +1 -0
- package/lib/module/utils/utils.js +5 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +8 -8
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts +7 -0
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts +22 -0
- package/lib/typescript/components/Message/MessageSimple/MessageTimestamp.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/DateHeader.d.ts +1 -1
- package/lib/typescript/components/MessageList/DateHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +0 -8
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +5 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +6 -5
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +3 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +1 -0
- package/lib/typescript/i18n/es.json +14 -13
- package/lib/typescript/i18n/fr.json +14 -13
- package/lib/typescript/i18n/he.json +14 -13
- package/lib/typescript/i18n/hi.json +14 -13
- package/lib/typescript/i18n/it.json +14 -13
- package/lib/typescript/i18n/ja.json +14 -13
- package/lib/typescript/i18n/ko.json +14 -13
- package/lib/typescript/i18n/nl.json +14 -13
- package/lib/typescript/i18n/pt-BR.json +14 -13
- package/lib/typescript/i18n/ru.json +14 -13
- package/lib/typescript/i18n/tr.json +14 -13
- package/lib/typescript/utils/Streami18n.d.ts +6 -0
- package/lib/typescript/utils/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/getDateString.d.ts +30 -0
- package/lib/typescript/utils/getDateString.d.ts.map +1 -0
- package/lib/typescript/utils/utils.d.ts +6 -0
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Channel/Channel.tsx +4 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -2
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +1 -1
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +3 -31
- package/src/components/Message/Message.tsx +7 -0
- package/src/components/Message/MessageSimple/MessageContent.tsx +13 -33
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +13 -31
- package/src/components/Message/MessageSimple/MessageEditedTimestamp.tsx +56 -0
- package/src/components/Message/MessageSimple/MessageFooter.tsx +104 -63
- package/src/components/Message/MessageSimple/MessageSimple.tsx +14 -2
- package/src/components/Message/MessageSimple/MessageTimestamp.tsx +64 -0
- package/src/components/Message/hooks/useCreateMessageContext.ts +5 -0
- package/src/components/MessageInput/hooks/useAudioController.tsx +3 -5
- package/src/components/MessageList/DateHeader.tsx +1 -1
- package/src/components/MessageList/InlineDateSeparator.tsx +8 -8
- package/src/components/MessageList/MessageList.tsx +9 -9
- package/src/components/MessageList/MessageSystem.tsx +35 -43
- package/src/components/MessageList/utils/getGroupStyles.ts +7 -4
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +20 -12
- package/src/components/index.ts +1 -0
- package/src/contexts/channelContext/ChannelContext.tsx +1 -1
- package/src/contexts/messageContext/MessageContext.tsx +4 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +6 -5
- package/src/contexts/themeContext/utils/theme.ts +6 -0
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +14 -13
- package/src/i18n/fr.json +14 -13
- package/src/i18n/he.json +14 -13
- package/src/i18n/hi.json +14 -13
- package/src/i18n/it.json +14 -13
- package/src/i18n/ja.json +14 -13
- package/src/i18n/ko.json +14 -13
- package/src/i18n/nl.json +14 -13
- package/src/i18n/pt-BR.json +14 -13
- package/src/i18n/ru.json +14 -13
- package/src/i18n/tr.json +14 -13
- package/src/utils/getDateString.ts +67 -0
- package/src/utils/utils.ts +11 -0
- package/src/version.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"1 Reply": "",
|
|
3
|
-
"1 Thread Reply": "
|
|
3
|
+
"1 Thread Reply": "",
|
|
4
4
|
"Allow access to your Gallery": "",
|
|
5
5
|
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "",
|
|
6
|
+
"Also send to channel": "Kanala da gönder",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
8
|
"Are you sure?": "",
|
|
9
9
|
"Block User": "",
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
"Device camera is used to take photos or videos.": "",
|
|
17
17
|
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
|
+
"Edited": "",
|
|
19
20
|
"Editing Message": "",
|
|
20
21
|
"Emoji matching": "",
|
|
21
22
|
"Empty message...": "",
|
|
22
|
-
"Error loading": "",
|
|
23
|
-
"Error loading channel list...": "",
|
|
24
|
-
"Error loading messages for this channel...": "",
|
|
23
|
+
"Error loading": "Yükleme hatası",
|
|
24
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
25
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
25
26
|
"Error while loading, please reload/refresh": "",
|
|
26
|
-
"File type not supported": "
|
|
27
|
+
"File type not supported": "",
|
|
27
28
|
"Flag": "",
|
|
28
29
|
"Flag Message": "",
|
|
29
30
|
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
@@ -32,9 +33,9 @@
|
|
|
32
33
|
"Instant Commands": "",
|
|
33
34
|
"Let's start chatting!": "",
|
|
34
35
|
"Links are disabled": "",
|
|
35
|
-
"Loading channels...": "",
|
|
36
|
-
"Loading messages...": "",
|
|
37
|
-
"Loading...": "",
|
|
36
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
37
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
38
|
+
"Loading...": "Yükleniyor...",
|
|
38
39
|
"Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
|
|
39
40
|
"Message Reactions": "",
|
|
40
41
|
"Message deleted": "Mesaj silindi",
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"Not supported": "",
|
|
45
46
|
"Nothing yet...": "",
|
|
46
47
|
"Ok": "",
|
|
47
|
-
"Only visible to you": "
|
|
48
|
+
"Only visible to you": "",
|
|
48
49
|
"Open Settings": "",
|
|
49
50
|
"Photo": "",
|
|
50
51
|
"Photos and Videos": "",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"Please allow Audio permissions in settings.": "",
|
|
54
55
|
"Please enable access to your photos and videos so you can share them.": "",
|
|
55
56
|
"Please select a channel first": "",
|
|
56
|
-
"Reconnecting...": "",
|
|
57
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
57
58
|
"Reply": "",
|
|
58
59
|
"Reply to Message": "",
|
|
59
60
|
"Resend": "",
|
|
@@ -71,12 +72,12 @@
|
|
|
71
72
|
"Unpin from Conversation": "",
|
|
72
73
|
"Unread Messages": "Okunmamış Mesajlar",
|
|
73
74
|
"Video": "",
|
|
74
|
-
"You": "",
|
|
75
|
+
"You": "Sen",
|
|
75
76
|
"You can't send messages in this channel": "",
|
|
76
77
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
77
78
|
"{{ index }} of {{ photoLength }}": "",
|
|
78
79
|
"{{ replyCount }} Replies": "",
|
|
79
|
-
"{{ replyCount }} Thread Replies": "
|
|
80
|
+
"{{ replyCount }} Thread Replies": "",
|
|
80
81
|
"{{ user }} is typing": "",
|
|
81
82
|
"🏙 Attachment...": ""
|
|
82
83
|
}
|
|
@@ -131,9 +131,15 @@ export declare class Streami18n {
|
|
|
131
131
|
"Device camera is used to take photos or videos.": string;
|
|
132
132
|
"Do you want to send a copy of this message to a moderator for further investigation?": string;
|
|
133
133
|
"Edit Message": string;
|
|
134
|
+
Edited: string;
|
|
134
135
|
"Editing Message": string;
|
|
135
136
|
"Emoji matching": string;
|
|
136
137
|
"Empty message...": string;
|
|
138
|
+
/**
|
|
139
|
+
* These locale imports also set these locales globally.
|
|
140
|
+
* So as a last step we import the english locale to make
|
|
141
|
+
* sure we don't mess up languages in other places in the app.
|
|
142
|
+
*/
|
|
137
143
|
"Error loading": string;
|
|
138
144
|
"Error loading channel list...": string;
|
|
139
145
|
"Error loading messages for this channel...": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../src/utils/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAa7C,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC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GAAG,yBAAyB,EACvE,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAoBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TDateTimeParser, TDateTimeParserInput } from '../contexts/translationContext/TranslationContext';
|
|
2
|
+
interface DateFormatterOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to show the time in Calendar time format. Calendar time displays time relative to a today's date.
|
|
5
|
+
*/
|
|
6
|
+
calendar?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The timestamp to be formatted.
|
|
9
|
+
*/
|
|
10
|
+
date?: string | Date;
|
|
11
|
+
/**
|
|
12
|
+
* The format in which the date should be displayed.
|
|
13
|
+
*/
|
|
14
|
+
format?: string;
|
|
15
|
+
/**
|
|
16
|
+
* A function to format the date.
|
|
17
|
+
*/
|
|
18
|
+
formatDate?: (date: TDateTimeParserInput) => string;
|
|
19
|
+
/**
|
|
20
|
+
* The datetime parsing function.
|
|
21
|
+
*/
|
|
22
|
+
tDateTimeParser?: TDateTimeParser;
|
|
23
|
+
}
|
|
24
|
+
export declare const noParsingFunctionWarning = "MessageTimestamp was called but there is no datetime parsing function available";
|
|
25
|
+
/**
|
|
26
|
+
* Utility funcyion to format the date string.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getDateString({ calendar, date, format, formatDate, tDateTimeParser, }: DateFormatterOptions): string | number | null;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=getDateString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDateString.d.ts","sourceRoot":"","sources":["../../../src/utils/getDateString.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,oBAAoB,EACrB,MAAM,mDAAmD,CAAC;AAE3D,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,MAAM,CAAC;IACpD;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,wBAAwB,oFAC8C,CAAC;AAEpF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAU,EACV,eAAe,GAChB,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAyB/C"}
|
|
@@ -45,6 +45,12 @@ export declare const isBlockedMessage: <StreamChatGenerics extends DefaultStream
|
|
|
45
45
|
* @returns boolean
|
|
46
46
|
*/
|
|
47
47
|
export declare const isBouncedMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: MessageType<StreamChatGenerics>) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Utility to check if the message is a edited message.
|
|
50
|
+
* @param message
|
|
51
|
+
* @returns boolean
|
|
52
|
+
*/
|
|
53
|
+
export declare const isEditedMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: MessageType<StreamChatGenerics>) => boolean;
|
|
48
54
|
export declare const queryMembersDebounced: DebouncedFunc<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>["name"], onReady?: ((users: SuggestionUser<StreamChatGenerics>[]) => void) | undefined, options?: {
|
|
49
55
|
limit?: number;
|
|
50
56
|
}) => Promise<void>)>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EACV,OAAO,EAGP,eAAe,EACf,qBAAqB,EACrB,UAAU,EAEX,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACf,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAkB,KAAK,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;EASpB,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE;IACnC,WAAW,EAAE,aAAa,CAAC;IAC3B,QAAQ,EAAE,UAAU,CAAC;IACrB,aAAa,EAAE,eAAe,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;CAMf,CAAC;AAEH,eAAO,MAAM,kBAAkB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EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;CACvE,KACE,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,MAAM,MAAM,oBAAoB,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,CACF,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,EACpC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,EACjD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,EAAE,KAAK,IAAI,EAC/D,OAAO,CAAC,EAAE;IACR,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,KACE,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBA8BrC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,sOAkJ7B,CAAC;AAEH,eAAO,MAAM,sBAAsB,QAAS,MAAM,WACO,CAAC;AAE1D,eAAO,MAAM,mBAAmB,SAAU,MAAM,uBAO/C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,MAAM,YAA8B,CAAC;AAErE,eAAO,MAAM,gBAAgB,kBAAa,MAIqC,CAAC;AAKhF,eAAO,MAAM,aAAa,SAAU,MAAM,YAazC,CAAC;AAqBF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,+IAIhC,MAA+C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.30.0-beta.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"path": "0.12.7",
|
|
79
79
|
"react-native-markdown-package": "1.8.2",
|
|
80
80
|
"react-native-url-polyfill": "^1.3.0",
|
|
81
|
-
"stream-chat": "8.
|
|
81
|
+
"stream-chat": "8.31.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react-native-quick-sqlite": ">=5.1.0",
|
|
@@ -118,6 +118,7 @@ import { MessageAvatar as MessageAvatarDefault } from '../Message/MessageSimple/
|
|
|
118
118
|
import { MessageBounce as MessageBounceDefault } from '../Message/MessageSimple/MessageBounce';
|
|
119
119
|
import { MessageContent as MessageContentDefault } from '../Message/MessageSimple/MessageContent';
|
|
120
120
|
import { MessageDeleted as MessageDeletedDefault } from '../Message/MessageSimple/MessageDeleted';
|
|
121
|
+
import { MessageEditedTimestamp as MessageEditedTimestampDefault } from '../Message/MessageSimple/MessageEditedTimestamp';
|
|
121
122
|
import { MessageError as MessageErrorDefault } from '../Message/MessageSimple/MessageError';
|
|
122
123
|
import { MessageFooter as MessageFooterDefault } from '../Message/MessageSimple/MessageFooter';
|
|
123
124
|
import { MessagePinnedHeader as MessagePinnedHeaderDefault } from '../Message/MessageSimple/MessagePinnedHeader';
|
|
@@ -262,7 +263,6 @@ export type ChannelPropsWithContext<
|
|
|
262
263
|
| 'FileAttachmentGroup'
|
|
263
264
|
| 'FlatList'
|
|
264
265
|
| 'forceAlignMessages'
|
|
265
|
-
| 'formatDate'
|
|
266
266
|
| 'Gallery'
|
|
267
267
|
| 'getMessagesGroupStyles'
|
|
268
268
|
| 'Giphy'
|
|
@@ -292,6 +292,7 @@ export type ChannelPropsWithContext<
|
|
|
292
292
|
| 'MessageContent'
|
|
293
293
|
| 'messageContentOrder'
|
|
294
294
|
| 'MessageDeleted'
|
|
295
|
+
| 'MessageEditedTimestamp'
|
|
295
296
|
| 'MessageError'
|
|
296
297
|
| 'MessageFooter'
|
|
297
298
|
| 'MessageHeader'
|
|
@@ -469,7 +470,6 @@ const ChannelWithContext = <
|
|
|
469
470
|
FileUploadPreview = FileUploadPreviewDefault,
|
|
470
471
|
FlatList = FlatListDefault,
|
|
471
472
|
forceAlignMessages,
|
|
472
|
-
formatDate,
|
|
473
473
|
Gallery = GalleryDefault,
|
|
474
474
|
getMessagesGroupStyles,
|
|
475
475
|
Giphy = GiphyDefault,
|
|
@@ -527,6 +527,7 @@ const ChannelWithContext = <
|
|
|
527
527
|
MessageContent = MessageContentDefault,
|
|
528
528
|
messageContentOrder = ['quoted_reply', 'gallery', 'files', 'text', 'attachments'],
|
|
529
529
|
MessageDeleted = MessageDeletedDefault,
|
|
530
|
+
MessageEditedTimestamp = MessageEditedTimestampDefault,
|
|
530
531
|
MessageError = MessageErrorDefault,
|
|
531
532
|
MessageFooter = MessageFooterDefault,
|
|
532
533
|
MessageHeader,
|
|
@@ -2295,7 +2296,6 @@ const ChannelWithContext = <
|
|
|
2295
2296
|
FileAttachmentIcon,
|
|
2296
2297
|
FlatList,
|
|
2297
2298
|
forceAlignMessages,
|
|
2298
|
-
formatDate,
|
|
2299
2299
|
Gallery,
|
|
2300
2300
|
getMessagesGroupStyles,
|
|
2301
2301
|
Giphy,
|
|
@@ -2326,6 +2326,7 @@ const ChannelWithContext = <
|
|
|
2326
2326
|
MessageContent,
|
|
2327
2327
|
messageContentOrder,
|
|
2328
2328
|
MessageDeleted,
|
|
2329
|
+
MessageEditedTimestamp,
|
|
2329
2330
|
MessageError,
|
|
2330
2331
|
MessageFooter,
|
|
2331
2332
|
MessageHeader,
|
|
@@ -27,7 +27,6 @@ export const useCreateMessagesContext = <
|
|
|
27
27
|
FileAttachmentIcon,
|
|
28
28
|
FlatList,
|
|
29
29
|
forceAlignMessages,
|
|
30
|
-
formatDate,
|
|
31
30
|
Gallery,
|
|
32
31
|
getMessagesGroupStyles,
|
|
33
32
|
Giphy,
|
|
@@ -58,6 +57,7 @@ export const useCreateMessagesContext = <
|
|
|
58
57
|
MessageContent,
|
|
59
58
|
messageContentOrder,
|
|
60
59
|
MessageDeleted,
|
|
60
|
+
MessageEditedTimestamp,
|
|
61
61
|
MessageError,
|
|
62
62
|
MessageFooter,
|
|
63
63
|
MessageHeader,
|
|
@@ -123,7 +123,6 @@ export const useCreateMessagesContext = <
|
|
|
123
123
|
FileAttachmentIcon,
|
|
124
124
|
FlatList,
|
|
125
125
|
forceAlignMessages,
|
|
126
|
-
formatDate,
|
|
127
126
|
Gallery,
|
|
128
127
|
getMessagesGroupStyles,
|
|
129
128
|
Giphy,
|
|
@@ -154,6 +153,7 @@ export const useCreateMessagesContext = <
|
|
|
154
153
|
MessageContent,
|
|
155
154
|
messageContentOrder,
|
|
156
155
|
MessageDeleted,
|
|
156
|
+
MessageEditedTimestamp,
|
|
157
157
|
MessageError,
|
|
158
158
|
MessageFooter,
|
|
159
159
|
MessageHeader,
|
|
@@ -166,7 +166,7 @@ const getLatestMessageReadStatus = <
|
|
|
166
166
|
return MessageReadStatus.NOT_SENT_BY_CURRENT_USER;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
const readList = channel.state.read;
|
|
169
|
+
const readList = { ...channel.state.read };
|
|
170
170
|
if (currentUserId) {
|
|
171
171
|
delete readList[currentUserId];
|
|
172
172
|
}
|
|
@@ -4,14 +4,11 @@ import Animated, { Extrapolate, interpolate, useAnimatedStyle } from 'react-nati
|
|
|
4
4
|
|
|
5
5
|
import { useOverlayContext } from '../../../contexts/overlayContext/OverlayContext';
|
|
6
6
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
7
|
-
import {
|
|
8
|
-
isDayOrMoment,
|
|
9
|
-
TDateTimeParserOutput,
|
|
10
|
-
useTranslationContext,
|
|
11
|
-
} from '../../../contexts/translationContext/TranslationContext';
|
|
7
|
+
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
12
8
|
import { Close } from '../../../icons';
|
|
13
9
|
|
|
14
10
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
11
|
+
import { getDateString } from '../../../utils/getDateString';
|
|
15
12
|
import type { Photo } from '../ImageGallery';
|
|
16
13
|
|
|
17
14
|
const ReanimatedSafeAreaView = Animated.createAnimatedComponent
|
|
@@ -101,32 +98,7 @@ export const ImageGalleryHeader = <
|
|
|
101
98
|
const { t, tDateTimeParser } = useTranslationContext();
|
|
102
99
|
const { setOverlay } = useOverlayContext();
|
|
103
100
|
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* .calendar and .fromNow can be initialized after the first render,
|
|
108
|
-
* and attempting to access them at that time will cause an error
|
|
109
|
-
* to be thrown.
|
|
110
|
-
*
|
|
111
|
-
* This falls back to null if neither exist.
|
|
112
|
-
*/
|
|
113
|
-
const getDateObject = (date: TDateTimeParserOutput | null) => {
|
|
114
|
-
if (date === null || !isDayOrMoment(date)) {
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (date.calendar) {
|
|
119
|
-
return date.calendar();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (date.fromNow) {
|
|
123
|
-
return date.fromNow();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return null;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const date = getDateObject(parsedDate);
|
|
101
|
+
const date = getDateString({ calendar: true, date: photo?.created_at, tDateTimeParser });
|
|
130
102
|
|
|
131
103
|
const headerStyle = useAnimatedStyle<ViewStyle>(() => ({
|
|
132
104
|
opacity: opacity.value,
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
hasOnlyEmojis,
|
|
49
49
|
isBlockedMessage,
|
|
50
50
|
isBouncedMessage,
|
|
51
|
+
isEditedMessage,
|
|
51
52
|
MessageStatusTypes,
|
|
52
53
|
} from '../../utils/utils';
|
|
53
54
|
|
|
@@ -233,6 +234,7 @@ const MessageWithContext = <
|
|
|
233
234
|
props: MessagePropsWithContext<StreamChatGenerics>,
|
|
234
235
|
) => {
|
|
235
236
|
const [isBounceDialogOpen, setIsBounceDialogOpen] = useState(false);
|
|
237
|
+
const [isEditedMessageOpen, setIsEditedMessageOpen] = useState(false);
|
|
236
238
|
const isMessageTypeDeleted = props.message.type === 'deleted';
|
|
237
239
|
|
|
238
240
|
const {
|
|
@@ -334,6 +336,9 @@ const MessageWithContext = <
|
|
|
334
336
|
if (dismissKeyboardOnMessageTouch) {
|
|
335
337
|
Keyboard.dismiss();
|
|
336
338
|
}
|
|
339
|
+
if (isEditedMessage(message)) {
|
|
340
|
+
setIsEditedMessageOpen((prevState) => !prevState);
|
|
341
|
+
}
|
|
337
342
|
const quotedMessage = message.quoted_message as MessageType<StreamChatGenerics>;
|
|
338
343
|
if (error) {
|
|
339
344
|
/**
|
|
@@ -677,6 +682,7 @@ const MessageWithContext = <
|
|
|
677
682
|
handleToggleReaction,
|
|
678
683
|
hasReactions,
|
|
679
684
|
images: attachments.images,
|
|
685
|
+
isEditedMessageOpen,
|
|
680
686
|
isMyMessage,
|
|
681
687
|
lastGroupMessage: groupStyles?.[0] === 'single' || groupStyles?.[0] === 'bottom',
|
|
682
688
|
lastReceivedId,
|
|
@@ -727,6 +733,7 @@ const MessageWithContext = <
|
|
|
727
733
|
otherAttachments: attachments.other,
|
|
728
734
|
preventPress,
|
|
729
735
|
reactions,
|
|
736
|
+
setIsEditedMessageOpen,
|
|
730
737
|
showAvatar,
|
|
731
738
|
showMessageOverlay,
|
|
732
739
|
showMessageStatus: typeof showMessageStatus === 'boolean' ? showMessageStatus : isMyMessage,
|
|
@@ -19,8 +19,6 @@ import {
|
|
|
19
19
|
} from '../../../contexts/messagesContext/MessagesContext';
|
|
20
20
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
21
21
|
import {
|
|
22
|
-
isDayOrMoment,
|
|
23
|
-
TDateTimeParserInput,
|
|
24
22
|
TranslationContextValue,
|
|
25
23
|
useTranslationContext,
|
|
26
24
|
} from '../../../contexts/translationContext/TranslationContext';
|
|
@@ -66,6 +64,7 @@ export type MessageContentPropsWithContext<
|
|
|
66
64
|
MessageContextValue<StreamChatGenerics>,
|
|
67
65
|
| 'alignment'
|
|
68
66
|
| 'disabled'
|
|
67
|
+
| 'isEditedMessageOpen'
|
|
69
68
|
| 'goToMessage'
|
|
70
69
|
| 'groupStyles'
|
|
71
70
|
| 'hasReactions'
|
|
@@ -88,7 +87,6 @@ export type MessageContentPropsWithContext<
|
|
|
88
87
|
| 'additionalTouchableProps'
|
|
89
88
|
| 'Attachment'
|
|
90
89
|
| 'FileAttachmentGroup'
|
|
91
|
-
| 'formatDate'
|
|
92
90
|
| 'Gallery'
|
|
93
91
|
| 'isAttachmentEqual'
|
|
94
92
|
| 'MessageFooter'
|
|
@@ -102,7 +100,7 @@ export type MessageContentPropsWithContext<
|
|
|
102
100
|
| 'onPressInMessage'
|
|
103
101
|
| 'Reply'
|
|
104
102
|
> &
|
|
105
|
-
Pick<TranslationContextValue, 't'
|
|
103
|
+
Pick<TranslationContextValue, 't'> & {
|
|
106
104
|
setMessageContentWidth: React.Dispatch<React.SetStateAction<number>>;
|
|
107
105
|
};
|
|
108
106
|
|
|
@@ -120,7 +118,6 @@ const MessageContentWithContext = <
|
|
|
120
118
|
Attachment,
|
|
121
119
|
disabled,
|
|
122
120
|
FileAttachmentGroup,
|
|
123
|
-
formatDate,
|
|
124
121
|
Gallery,
|
|
125
122
|
groupStyles,
|
|
126
123
|
hasReactions,
|
|
@@ -145,7 +142,6 @@ const MessageContentWithContext = <
|
|
|
145
142
|
Reply,
|
|
146
143
|
setMessageContentWidth,
|
|
147
144
|
showMessageStatus,
|
|
148
|
-
tDateTimeParser,
|
|
149
145
|
threadList,
|
|
150
146
|
} = props;
|
|
151
147
|
|
|
@@ -178,21 +174,6 @@ const MessageContentWithContext = <
|
|
|
178
174
|
} = useTheme();
|
|
179
175
|
const { vw } = useViewport();
|
|
180
176
|
|
|
181
|
-
const getDateText = (formatter?: (date: TDateTimeParserInput) => string) => {
|
|
182
|
-
if (!message.created_at) return '';
|
|
183
|
-
|
|
184
|
-
if (formatter) {
|
|
185
|
-
return formatter(message.created_at);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
const parserOutput = tDateTimeParser(message.created_at);
|
|
189
|
-
|
|
190
|
-
if (isDayOrMoment(parserOutput)) {
|
|
191
|
-
return parserOutput.format('LT');
|
|
192
|
-
}
|
|
193
|
-
return message.created_at;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
177
|
const onLayout: (event: LayoutChangeEvent) => void = ({
|
|
197
178
|
nativeEvent: {
|
|
198
179
|
layout: { width },
|
|
@@ -221,7 +202,7 @@ const MessageContentWithContext = <
|
|
|
221
202
|
if (isMessageTypeDeleted) {
|
|
222
203
|
return (
|
|
223
204
|
<MessageDeleted
|
|
224
|
-
|
|
205
|
+
date={message.created_at}
|
|
225
206
|
groupStyle={groupStyle}
|
|
226
207
|
noBorder={noBorder}
|
|
227
208
|
onLayout={onLayout}
|
|
@@ -332,7 +313,7 @@ const MessageContentWithContext = <
|
|
|
332
313
|
{MessageHeader && (
|
|
333
314
|
<MessageHeader
|
|
334
315
|
alignment={alignment}
|
|
335
|
-
|
|
316
|
+
date={message.created_at}
|
|
336
317
|
isDeleted={isMessageTypeDeleted}
|
|
337
318
|
lastGroupMessage={lastGroupMessage}
|
|
338
319
|
members={members}
|
|
@@ -411,7 +392,7 @@ const MessageContentWithContext = <
|
|
|
411
392
|
{error && <MessageError />}
|
|
412
393
|
</View>
|
|
413
394
|
<MessageReplies noBorder={noBorder} repliesCurveColor={repliesCurveColor} />
|
|
414
|
-
<MessageFooter
|
|
395
|
+
<MessageFooter date={message.created_at} isDeleted={!!isMessageTypeDeleted} />
|
|
415
396
|
</TouchableOpacity>
|
|
416
397
|
);
|
|
417
398
|
};
|
|
@@ -426,6 +407,7 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
426
407
|
groupStyles: prevGroupStyles,
|
|
427
408
|
hasReactions: prevHasReactions,
|
|
428
409
|
isAttachmentEqual,
|
|
410
|
+
isEditedMessageOpen: prevIsEditedMessageOpen,
|
|
429
411
|
lastGroupMessage: prevLastGroupMessage,
|
|
430
412
|
members: prevMembers,
|
|
431
413
|
message: prevMessage,
|
|
@@ -434,13 +416,13 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
434
416
|
onlyEmojis: prevOnlyEmojis,
|
|
435
417
|
otherAttachments: prevOtherAttachments,
|
|
436
418
|
t: prevT,
|
|
437
|
-
tDateTimeParser: prevTDateTimeParser,
|
|
438
419
|
} = prevProps;
|
|
439
420
|
const {
|
|
440
421
|
disabled: nextDisabled,
|
|
441
422
|
goToMessage: nextGoToMessage,
|
|
442
423
|
groupStyles: nextGroupStyles,
|
|
443
424
|
hasReactions: nextHasReactions,
|
|
425
|
+
isEditedMessageOpen: nextIsEditedMessageOpen,
|
|
444
426
|
lastGroupMessage: nextLastGroupMessage,
|
|
445
427
|
members: nextMembers,
|
|
446
428
|
message: nextMessage,
|
|
@@ -449,7 +431,6 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
449
431
|
onlyEmojis: nextOnlyEmojis,
|
|
450
432
|
otherAttachments: nextOtherAttachments,
|
|
451
433
|
t: nextT,
|
|
452
|
-
tDateTimeParser: nextTDateTimeParser,
|
|
453
434
|
} = nextProps;
|
|
454
435
|
|
|
455
436
|
const disabledEqual = prevDisabled === nextDisabled;
|
|
@@ -465,6 +446,9 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
465
446
|
nextMessage.quoted_message_id && prevGoToMessage !== nextGoToMessage;
|
|
466
447
|
if (goToMessageChangedAndMatters) return false;
|
|
467
448
|
|
|
449
|
+
const isEditedMessageOpenEqual = prevIsEditedMessageOpen === nextIsEditedMessageOpen;
|
|
450
|
+
if (!isEditedMessageOpenEqual) return false;
|
|
451
|
+
|
|
468
452
|
const onlyEmojisEqual = prevOnlyEmojis === nextOnlyEmojis;
|
|
469
453
|
if (!onlyEmojisEqual) return false;
|
|
470
454
|
|
|
@@ -542,9 +526,6 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
542
526
|
const tEqual = prevT === nextT;
|
|
543
527
|
if (!tEqual) return false;
|
|
544
528
|
|
|
545
|
-
const tDateTimeParserEqual = prevTDateTimeParser === nextTDateTimeParser;
|
|
546
|
-
if (!tDateTimeParserEqual) return false;
|
|
547
|
-
|
|
548
529
|
const messageThemeEqual =
|
|
549
530
|
JSON.stringify(prevMyMessageTheme) === JSON.stringify(nextMyMessageTheme);
|
|
550
531
|
if (!messageThemeEqual) return false;
|
|
@@ -576,6 +557,7 @@ export const MessageContent = <
|
|
|
576
557
|
goToMessage,
|
|
577
558
|
groupStyles,
|
|
578
559
|
hasReactions,
|
|
560
|
+
isEditedMessageOpen,
|
|
579
561
|
isMyMessage,
|
|
580
562
|
lastGroupMessage,
|
|
581
563
|
lastReceivedId,
|
|
@@ -595,7 +577,6 @@ export const MessageContent = <
|
|
|
595
577
|
additionalTouchableProps,
|
|
596
578
|
Attachment,
|
|
597
579
|
FileAttachmentGroup,
|
|
598
|
-
formatDate,
|
|
599
580
|
Gallery,
|
|
600
581
|
isAttachmentEqual,
|
|
601
582
|
MessageDeleted,
|
|
@@ -608,7 +589,7 @@ export const MessageContent = <
|
|
|
608
589
|
myMessageTheme,
|
|
609
590
|
Reply,
|
|
610
591
|
} = useMessagesContext<StreamChatGenerics>();
|
|
611
|
-
const { t
|
|
592
|
+
const { t } = useTranslationContext();
|
|
612
593
|
|
|
613
594
|
return (
|
|
614
595
|
<MemoizedMessageContent<StreamChatGenerics>
|
|
@@ -618,12 +599,12 @@ export const MessageContent = <
|
|
|
618
599
|
Attachment,
|
|
619
600
|
disabled,
|
|
620
601
|
FileAttachmentGroup,
|
|
621
|
-
formatDate,
|
|
622
602
|
Gallery,
|
|
623
603
|
goToMessage,
|
|
624
604
|
groupStyles,
|
|
625
605
|
hasReactions,
|
|
626
606
|
isAttachmentEqual,
|
|
607
|
+
isEditedMessageOpen,
|
|
627
608
|
isMyMessage,
|
|
628
609
|
lastGroupMessage,
|
|
629
610
|
lastReceivedId,
|
|
@@ -647,7 +628,6 @@ export const MessageContent = <
|
|
|
647
628
|
Reply,
|
|
648
629
|
showMessageStatus,
|
|
649
630
|
t,
|
|
650
|
-
tDateTimeParser,
|
|
651
631
|
threadList,
|
|
652
632
|
}}
|
|
653
633
|
{...props}
|