sendMessage method
Implementation
@override
Future<void> sendMessage(
AppModel app, String memberId, String assigneeId, String message,
{Action? postSendAction}) async {
await AbstractRepositorySingleton.singleton
.notificationRepository(app.documentID)!
.add(NotificationModel(
documentID: newRandomKey(),
appId: app.documentID,
description: message,
read: false,
status: NotificationStatus.open,
assigneeId: assigneeId,
reporterId: memberId))
.then((value) {
if (postSendAction != null) {
postSendAction(value);
}
});
}