v0.12.30 add notifications for iOS
This commit is contained in:
@@ -118,7 +118,7 @@ module.exports = function(io) {
|
||||
}
|
||||
} else if (group.type === 'public') {
|
||||
const subUsers = await query(req.schema,
|
||||
'SELECT DISTINCT user_id FROM push_subscriptions WHERE fcm_token IS NOT NULL AND user_id != $1',
|
||||
'SELECT DISTINCT user_id FROM push_subscriptions WHERE (fcm_token IS NOT NULL OR webpush_endpoint IS NOT NULL) AND user_id != $1',
|
||||
[req.user.id]
|
||||
);
|
||||
for (const sub of subUsers) {
|
||||
@@ -166,7 +166,7 @@ module.exports = function(io) {
|
||||
}
|
||||
} else if (group.type === 'public') {
|
||||
const subUsers = await query(req.schema,
|
||||
'SELECT DISTINCT user_id FROM push_subscriptions WHERE fcm_token IS NOT NULL AND user_id != $1',
|
||||
'SELECT DISTINCT user_id FROM push_subscriptions WHERE (fcm_token IS NOT NULL OR webpush_endpoint IS NOT NULL) AND user_id != $1',
|
||||
[req.user.id]
|
||||
);
|
||||
for (const sub of subUsers) {
|
||||
|
||||
Reference in New Issue
Block a user