Add emoji reaction report for channel chat, fix reaction deduping bug
In channel chat screen, clicking a reaction emoji brings up a popup listing the received emoji reactions and their senders. Also fixes a bug that prevented displaying the count numbers on reactions. Code existed to display counts for multiples, but the deduplication failed to differentiate between senders and was tossing them out. There is still another preexisting bug, not fixed by this commit, that over-counts sent reactions in rooms.
This commit is contained in:
1 parent
98f6cf3745
commit
76b34779cf
29 files changed
+265
-73
No files matched your search
@@ -195,7 +195,12 @@ class ChannelMessageStore {
|
||||
replyToText: json['replyToText'] as String?,
|
||||
reactions:
|
||||
(json['reactions'] as Map<String, dynamic>?)?.map(
|
||||
(key, value) => MapEntry(key, value as int),
|
||||
(key, value) => MapEntry(
|
||||
key,
|
||||
(value is int)
|
||||
? List<String?>.filled(value, null)
|
||||
: value as List<String?>,
|
||||
),
|
||||
) ??
|
||||
{},
|
||||
);
|
||||
|
||||
@@ -171,7 +171,12 @@ class MessageStore {
|
||||
pathBytes: decodedPathBytes,
|
||||
reactions:
|
||||
(json['reactions'] as Map<String, dynamic>?)?.map(
|
||||
(key, value) => MapEntry(key, value as int),
|
||||
(key, value) => MapEntry(
|
||||
key,
|
||||
(value is int)
|
||||
? List<String?>.filled(value, null)
|
||||
: value as List<String?>,
|
||||
),
|
||||
) ??
|
||||
{},
|
||||
reactionStatuses:
|
||||
|
||||
Reference in new issue
Block a user