feat: add high priority Android notifications and set chat input field line limits
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user