push was updated

This commit is contained in:
Artemy
2026-03-07 21:36:27 +07:00
parent 08270e0350
commit bc95cb5331
5 changed files with 29 additions and 10 deletions
@@ -54,8 +54,18 @@ public class ChatNotificationService : IChatNotificationService
var profile = await _profileService.GetUserProfileAsync(message.SenderId);
var title = profile.Username;
await _notificationService.SendToUserAsync(userId, title,text, "chat_messages");
Dictionary<string, string> data = new Dictionary<string, string>();
data["chatId"] = message.RecipientId.ToString();
data["isGroup"] = message.RecipientType == RecipientType.Group ? "true" : "false";
await _notificationService.SendToUserAsync(
userId,
title,
text,
"chat_messages",
$"private_chat_{message.RecipientId}",
data);
}
public async Task NotifyMessageRemovedAsync(MessageRemovedResponse response)