saveReactions method

  1. @override
Future<ChatResult<void>> saveReactions(
  1. String roomId,
  2. String messageId,
  3. List<AggregatedReaction> reactions
)
override

Implementation

@override
Future<ChatResult<void>> saveReactions(
  String roomId,
  String messageId,
  List<AggregatedReaction> reactions,
) async {
  _reactions.putIfAbsent(roomId, () => {});
  _reactions[roomId]![messageId] = List.of(reactions);
  return const ChatSuccess(null);
}