simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -17,7 +17,7 @@ class ChatBubbleReactions extends StatelessWidget {
|
||||
final GetChatResponseObject bubbleData;
|
||||
final GetRoomResponseObject chatData;
|
||||
final bool isSender;
|
||||
final void Function({bool renew}) onChanged;
|
||||
final VoidCallback onChanged;
|
||||
|
||||
const ChatBubbleReactions({
|
||||
required this.bubbleData,
|
||||
@@ -58,7 +58,7 @@ class ChatBubbleReactions extends StatelessWidget {
|
||||
params: ReactMessageParams(e.key),
|
||||
).run();
|
||||
}
|
||||
onChanged(renew: true);
|
||||
onChanged();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user