feat: add high priority Android notifications and set chat input field line limits

This commit is contained in:
Van Leemput Dayron
2025-12-04 15:05:04 +01:00
parent 9f2bfcaa55
commit 9b11836409
2 changed files with 8 additions and 1 deletions

View File

@@ -44,6 +44,12 @@ async function sendNotificationToUsers(userIds, title, body, excludeUserId, data
click_action: "FLUTTER_NOTIFICATION_CLICK", click_action: "FLUTTER_NOTIFICATION_CLICK",
...data ...data
}, },
android: {
priority: "high",
notification: {
channelId: "high_importance_channel",
}
}
}; };
const response = await admin.messaging().sendEachForMulticast(message); const response = await admin.messaging().sendEachForMulticast(message);

View File

@@ -334,7 +334,8 @@ class _ChatGroupContentState extends State<ChatGroupContent> {
vertical: 12, vertical: 12,
), ),
), ),
maxLines: null, maxLines: 5,
minLines: 1,
textCapitalization: TextCapitalization.sentences, textCapitalization: TextCapitalization.sentences,
), ),
), ),