stream-chat-react-native-core 5.26.1-beta.3 → 5.27.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/AttachmentPicker/AttachmentPicker.js +7 -11
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -0
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +15 -11
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/i18n/es.json +38 -38
- package/lib/commonjs/i18n/fr.json +38 -38
- package/lib/commonjs/i18n/he.json +38 -38
- package/lib/commonjs/i18n/hi.json +38 -38
- package/lib/commonjs/i18n/it.json +38 -38
- package/lib/commonjs/i18n/ja.json +38 -38
- package/lib/commonjs/i18n/ko.json +38 -38
- package/lib/commonjs/i18n/nl.json +38 -38
- package/lib/commonjs/i18n/pt-BR.json +38 -38
- package/lib/commonjs/i18n/ru.json +38 -38
- package/lib/commonjs/i18n/tr.json +38 -38
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/addReactionToLocalState.js +3 -2
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +7 -11
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -0
- package/lib/module/contexts/overlayContext/OverlayProvider.js +15 -11
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/i18n/es.json +38 -38
- package/lib/module/i18n/fr.json +38 -38
- package/lib/module/i18n/he.json +38 -38
- package/lib/module/i18n/hi.json +38 -38
- package/lib/module/i18n/it.json +38 -38
- package/lib/module/i18n/ja.json +38 -38
- package/lib/module/i18n/ko.json +38 -38
- package/lib/module/i18n/nl.json +38 -38
- package/lib/module/i18n/pt-BR.json +38 -38
- package/lib/module/i18n/ru.json +38 -38
- package/lib/module/i18n/tr.json +38 -38
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/addReactionToLocalState.js +3 -2
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +4 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts +2 -0
- package/lib/typescript/i18n/es.json +38 -38
- package/lib/typescript/i18n/fr.json +38 -38
- package/lib/typescript/i18n/he.json +38 -38
- package/lib/typescript/i18n/hi.json +38 -38
- package/lib/typescript/i18n/it.json +38 -38
- package/lib/typescript/i18n/ja.json +38 -38
- package/lib/typescript/i18n/ko.json +38 -38
- package/lib/typescript/i18n/nl.json +38 -38
- package/lib/typescript/i18n/pt-BR.json +38 -38
- package/lib/typescript/i18n/ru.json +38 -38
- package/lib/typescript/i18n/tr.json +38 -38
- package/lib/typescript/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +8 -19
- package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +10 -0
- package/src/contexts/overlayContext/OverlayProvider.tsx +3 -0
- package/src/i18n/es.json +38 -38
- package/src/i18n/fr.json +38 -38
- package/src/i18n/he.json +38 -38
- package/src/i18n/hi.json +38 -38
- package/src/i18n/it.json +38 -38
- package/src/i18n/ja.json +38 -38
- package/src/i18n/ko.json +38 -38
- package/src/i18n/nl.json +38 -38
- package/src/i18n/pt-BR.json +38 -38
- package/src/i18n/ru.json +38 -38
- package/src/i18n/tr.json +38 -38
- package/src/index.ts +1 -1
- package/src/utils/addReactionToLocalState.ts +7 -2
- package/src/version.json +1 -1
|
@@ -49,7 +49,12 @@ export const addReactionToLocalState = <
|
|
|
49
49
|
message.latest_reactions = [];
|
|
50
50
|
}
|
|
51
51
|
message.latest_reactions = message.latest_reactions.filter((r) => r.user_id !== user.id);
|
|
52
|
-
if (
|
|
52
|
+
if (
|
|
53
|
+
currentReaction &&
|
|
54
|
+
message.reaction_counts &&
|
|
55
|
+
message.reaction_counts[currentReaction.type] &&
|
|
56
|
+
message.reaction_counts[currentReaction.type] > 0
|
|
57
|
+
) {
|
|
53
58
|
message.reaction_counts[currentReaction.type] =
|
|
54
59
|
message.reaction_counts[currentReaction.type] - 1;
|
|
55
60
|
}
|
|
@@ -67,7 +72,7 @@ export const addReactionToLocalState = <
|
|
|
67
72
|
[reactionType]: 1,
|
|
68
73
|
};
|
|
69
74
|
} else {
|
|
70
|
-
message.reaction_counts[reactionType] = message.reaction_counts[reactionType] + 1;
|
|
75
|
+
message.reaction_counts[reactionType] = (message.reaction_counts?.[reactionType] || 0) + 1;
|
|
71
76
|
}
|
|
72
77
|
}
|
|
73
78
|
|
package/src/version.json
CHANGED