Skip to content

Commit d959260

Browse files
committed
fix group id
1 parent 38cefcf commit d959260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pushNotifications.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export async function showServerPushNotification(data: ServerNotificationData) {
155155
pressAction: {
156156
id: 'default',
157157
},
158-
groupId: Math.random().toString(),
158+
groupId: data.channelId,
159159
visibility: AndroidVisibility.PUBLIC,
160160
circularLargeIcon: true,
161161
channelId: ANDROID_CHANNELS.serverMessages,
@@ -217,7 +217,7 @@ export async function showDMNotificationData(data: DMNotificationData) {
217217
pressAction: {
218218
id: 'default',
219219
},
220-
groupId: Math.random().toString(),
220+
groupId: data.channelId,
221221
visibility: AndroidVisibility.PUBLIC,
222222
circularLargeIcon: true,
223223
channelId: ANDROID_CHANNELS.dmMessages,

0 commit comments

Comments
 (0)