From 9b11836409897fb6048698d981b71b3a6f2a147a Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Thu, 4 Dec 2025 15:05:04 +0100 Subject: [PATCH] feat: add high priority Android notifications and set chat input field line limits --- functions/index.js | 6 ++++++ lib/components/group/chat_group_content.dart | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index 6134d2a..bb8b232 100644 --- a/functions/index.js +++ b/functions/index.js @@ -44,6 +44,12 @@ async function sendNotificationToUsers(userIds, title, body, excludeUserId, data click_action: "FLUTTER_NOTIFICATION_CLICK", ...data }, + android: { + priority: "high", + notification: { + channelId: "high_importance_channel", + } + } }; const response = await admin.messaging().sendEachForMulticast(message); diff --git a/lib/components/group/chat_group_content.dart b/lib/components/group/chat_group_content.dart index 13e1707..944d0d0 100644 --- a/lib/components/group/chat_group_content.dart +++ b/lib/components/group/chat_group_content.dart @@ -334,7 +334,8 @@ class _ChatGroupContentState extends State { vertical: 12, ), ), - maxLines: null, + maxLines: 5, + minLines: 1, textCapitalization: TextCapitalization.sentences, ), ),