Уведомления для андроид, откат data-only
All checks were successful
Build rosetta-wss / build (push) Successful in 1m49s

This commit is contained in:
RoyceDa
2026-03-30 19:12:00 +02:00
parent c1b287986d
commit 855deaa48a
3 changed files with 74 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ import im.rosetta.database.repository.UserRepository;
import im.rosetta.packet.Packet11Typeing;
import im.rosetta.packet.Packet7Read;
import im.rosetta.packet.base.PacketBaseDialog;
import im.rosetta.service.dispatch.runtime.PushType;
import im.rosetta.service.services.BufferService;
import im.rosetta.service.services.UserService;
import io.orprotocol.ProtocolException;
@@ -104,7 +105,7 @@ public class MessageDispatcher {
*/
this.firebaseDispatcher.sendPushNotification(fromPublicKey, new HashMap<>(){
{
put("type", "read");
put("type", PushType.READ);
put("dialog", toPublicKey);
}
});
@@ -115,7 +116,7 @@ public class MessageDispatcher {
*/
this.firebaseDispatcher.sendPushNotification(groupMembersPublicKeys, new HashMap<>(){
{
put("type", "group_message");
put("type", PushType.GROUP_MESSAGE);
put("dialog", toPublicKey.replace("#group:", ""));
}
});
@@ -174,7 +175,7 @@ public class MessageDispatcher {
*/
this.firebaseDispatcher.sendPushNotification(fromPublicKey, new HashMap<>(){
{
put("type", "read");
put("type", PushType.READ);
put("dialog", toPublicKey);
}
});
@@ -185,7 +186,7 @@ public class MessageDispatcher {
*/
this.firebaseDispatcher.sendPushNotification(toPublicKey, new HashMap<>(){
{
put("type", "personal_message");
put("type", PushType.PERSONAL_MESSAGE);
put("dialog", fromPublicKey);
}
});