regenerated files and fixed errors
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user