regenerated files and fixed errors

This commit is contained in:
Deven Joshi
2021-04-08 16:23:16 +05:30
parent c289871a56
commit 686dcf27e6
2 changed files with 8 additions and 4 deletions
@@ -643,11 +643,15 @@ class Channel {
final reactionCounts = {...message.reactionCounts ?? <String, int>{}};
if (reactionCounts.containsKey(type)) {
reactionCounts.update(type, (value) => value - 1);
if (type != null) {
reactionCounts.update(type, (value) => value - 1);
}
}
final reactionScores = {...message.reactionScores ?? <String, int>{}};
if (reactionScores.containsKey(type)) {
reactionScores.update(type, (value) => value - 1);
if (type != null) {
reactionScores.update(type, (value) => value - 1);
}
}
final latestReactions = [...message.latestReactions ?? <Reaction>[]]
@@ -244,8 +244,8 @@ class Message {
String? type,
List<Attachment>? attachments,
List<User>? mentionedUsers,
Map<String?, int>? reactionCounts,
Map<String?, int>? reactionScores,
Map<String, int>? reactionCounts,
Map<String, int>? reactionScores,
List<Reaction>? latestReactions,
List<Reaction>? ownReactions,
String? parentId,