use common analysis options

This commit is contained in:
Salvatore Giordano
2021-05-06 11:48:26 +02:00
parent ba1ab4aed8
commit 18ce268e48
11 changed files with 16 additions and 446 deletions
@@ -646,7 +646,7 @@ class Channel {
messageId: messageId,
createdAt: now,
type: type,
user: user!,
user: user,
score: 1,
extraData: extraData,
);
@@ -654,7 +654,7 @@ class Channel {
// Inserting at the 0th index as it's the latest reaction
latestReactions.insert(0, newReaction);
final ownReactions = [...latestReactions]
..removeWhere((it) => it.userId != user.id);
..removeWhere((it) => it.userId != user!.id);
final newMessage = message.copyWith(
reactionCounts: {...message.reactionCounts ?? <String, int>{}}