define and use max tag count

This commit is contained in:
or-else
2020-05-01 17:19:18 +03:00
parent fbaf98c117
commit 919047cfde
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -29,9 +29,10 @@ self.i18nMessage = function(id) {
// This method shows the push notifications.
firebase.messaging().setBackgroundMessageHandler((payload) => {
if (payload.data.silent === 'true') {
if (payload.data.silent == 'true') {
return;
}
const pushType = payload.data.what || 'msg';
const title = payload.data.title || self.i18nMessage(pushType == 'msg' ? 'new_message' : 'new_chat');
const options = {