We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3b539 commit 3a09f1dCopy full SHA for 3a09f1d
examples/SampleApp/src/hooks/useChatClient.ts
@@ -50,7 +50,7 @@ messaging.setBackgroundMessageHandler(async (remoteMessage) => {
50
name: 'Chat Messages',
51
});
52
53
- if (message.message.user?.name && message.message.text) {
+ if (message.message.user?.name && message.message.text && !remoteMessage.notification) {
54
const { stream, ...rest } = remoteMessage.data ?? {};
55
const data = {
56
...rest,
@@ -63,9 +63,9 @@ messaging.setBackgroundMessageHandler(async (remoteMessage) => {
63
id: 'default',
64
},
65
66
+ title: 'New message from ' + message.message.user.name,
67
body: message.message.text,
68
data,
- title: 'New message from ' + message.message.user.name,
69
70
}
71
0 commit comments