Browse Source

fix tribe caht mute

push-params
Evan Feenstra 5 years ago
parent
commit
46e5ed33de
  1. 2
      api/hub.ts
  2. 2
      dist/api/hub.js
  3. 2
      dist/api/hub.js.map

2
api/hub.ts

@ -230,7 +230,7 @@ const sendNotification = async (chat, name, type:NotificationType) => {
if(type==='message' && chat.type==constants.chat_types.tribe){
debounce(()=>{
const count = tribeCounts[chat.id]?tribeCounts[chat.id]+' ':''
params.notification.message = `You have ${count}new messages in ${chat.name}`
params.notification.message = chat.isMuted ? '' : `You have ${count}new messages in ${chat.name}`
finalNotification(owner.id, params)
}, chat.id, 30000)
} else {

2
dist/api/hub.js

@ -223,7 +223,7 @@ const sendNotification = (chat, name, type) => __awaiter(void 0, void 0, void 0,
if (type === 'message' && chat.type == constants.chat_types.tribe) {
debounce(() => {
const count = tribeCounts[chat.id] ? tribeCounts[chat.id] + ' ' : '';
params.notification.message = `You have ${count}new messages in ${chat.name}`;
params.notification.message = chat.isMuted ? '' : `You have ${count}new messages in ${chat.name}`;
finalNotification(owner.id, params);
}, chat.id, 30000);
}

2
dist/api/hub.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save