regenerated files and fixed errors
This commit is contained in:
@@ -643,11 +643,15 @@ class Channel {
|
|||||||
|
|
||||||
final reactionCounts = {...message.reactionCounts ?? <String, int>{}};
|
final reactionCounts = {...message.reactionCounts ?? <String, int>{}};
|
||||||
if (reactionCounts.containsKey(type)) {
|
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>{}};
|
final reactionScores = {...message.reactionScores ?? <String, int>{}};
|
||||||
if (reactionScores.containsKey(type)) {
|
if (reactionScores.containsKey(type)) {
|
||||||
reactionScores.update(type, (value) => value - 1);
|
if (type != null) {
|
||||||
|
reactionScores.update(type, (value) => value - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final latestReactions = [...message.latestReactions ?? <Reaction>[]]
|
final latestReactions = [...message.latestReactions ?? <Reaction>[]]
|
||||||
|
|||||||
@@ -244,8 +244,8 @@ class Message {
|
|||||||
String? type,
|
String? type,
|
||||||
List<Attachment>? attachments,
|
List<Attachment>? attachments,
|
||||||
List<User>? mentionedUsers,
|
List<User>? mentionedUsers,
|
||||||
Map<String?, int>? reactionCounts,
|
Map<String, int>? reactionCounts,
|
||||||
Map<String?, int>? reactionScores,
|
Map<String, int>? reactionScores,
|
||||||
List<Reaction>? latestReactions,
|
List<Reaction>? latestReactions,
|
||||||
List<Reaction>? ownReactions,
|
List<Reaction>? ownReactions,
|
||||||
String? parentId,
|
String? parentId,
|
||||||
|
|||||||
Reference in New Issue
Block a user