You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Notifications on all activity / server version 4.0.1 #23447
I can confirm, we have the same problem since the upgrade to 4.0.1, it happens across all OS Windows/Linux/Mac and on both Desktop App or Browser Version.
It's quite weird, some users on the other side have no more sound notifications, they get the red notification picture but no sound at all.
Reacted by Ali Alhaidary, hoppedmalt and IvanOpanasiuk
Also this caused the push notification limit to be reached by now (15th) while having a regular amount of 2500-3000 notifications/month.
Some of our users reported manually setting each channel to "no notifications" and then "only mentions" solved the problem, but to tell 100+ users to update possibly up to 100+ channels - that's not practical and due to reaching the push limit I can't tell everybody to do that (or at least remind them without actively opening the app).
Seems like the value of "only mentions" changed from v3.x to v4.x and wasn't migrated or something else.
RocketChat Cloud Notification Limit should be reset or the cap should be temporarily removed, as we can't do anything about it right now (as downgrade to 3.x is also not possible).
fad5585
There was a change from mobileNotifications to pushNotifications which is not reflected in the database: "mobileNotifications" : "mentions" will be ignored as the server now searches for pushNotifications which is not present (even when updating the value in the profile).
Should be as easy as: db.users.update({$rename: {"settings.preferences.mobileNotifications": "settings.preferences.pushNotifications"}})
Haven't tried yet. Backup first a wise man once said.
Note, that when users are updating their notification preferences between db update and final fix that the mobileNotification field will be there again. Not sure how this will effect any further db migration.
As our users are currently getting no push notifications whatsoever due to the cap I'll leave it like this and wait for a final fix.
Hey, everyone! 👋
Sorry for this annoying behavior and thanks for providing such a detailed analysis on what is going on and suggesting ways to fix it, @soundstorm ! As you can see, we already have a PR to fix this issue from the application's side and we'll keep you posted as we work on resetting the notifications cap.
We expect to deliver this fix before the Release Candidate (which is scheduled to the 20th).
Thanks!
Reacted by Luca Schröder, cs35-owncloud, hoppedmalt and Roland
Hey @matheusbsilva137!
Great that you're working on it.
I just tried and refined my previous update command, so that the field gets renamed correctly.
As mentioned: as soon as one user edits this preference it will be stored again as mobileNotifications (just confirmed again after updating from mentions to all: "pushNotifications" : "mentions", "mobileNotifications" : "all"). The Frontend will still read the pushNotifications value or the servers default if not updated correctly.
So the PR currently only addresses the DB issue, the writing mechanisms still need to be updated, but as you said, you're working on it :)
Reacted by Matheus Barbosa Silva, cs35-owncloud and hoppedmalt
@cs35-owncloud you can try my update procedure. Tested it myself with one user (update({"username":"xyz"},{$rename: ...}})) as I'll wait for the final fix.
thanks for the support ! If the release comes soon I prefer to stick to it rather than patch and maybe have some downsides.
Mostly I fear my users :'D
Thanks again !
Reacted by Luca Schröder, Matheus Barbosa Silva and hoppedmalt
Looks like the patch in #23487 is awaiting approval, but the milestone keeps getting pushed out, now indicating (just today) two revs out. Would be great to get this fixed, at least before November comes along, so sites, self-hosted or not, won't have their push notification limit artificially reached sooner than expected
Anyone heard about resetting the notification cap for those of us affected? Would that reset also apply to self-hosted users?
Hey everyone - currently talking to our product manager regarding this. I'll try my best to introduce this fix as a patch release to 4.1 instead of moving to 4.2
Seems like this should be an important patch, especially since I think it broke conversations actually updating and showing new messages for me without forcing a refresh of the room until I stumbled upon this and ran the update. I think it only affected users where that setting exists as only a few people in my organization had it enabled and it seemed fine for everyone else.
Updated right before your comment. Database is migrated, so all mobileNotifications entries are now pushNotifications and changes from the web apply to the database. But seems like the mobile App (iOS) still uses the old identifier and reads/saves to mobileNotifications 🧐
So is the REST API not updated?!
Seems like the App is somehow not using the API or I don't know, since the migration file is now the only appearance of the keyword mobileNotifications.
Activity
cs35-owncloud commentedon Oct 14, 2021
Hello,
I can confirm, we have the same problem since the upgrade to 4.0.1, it happens across all OS Windows/Linux/Mac and on both Desktop App or Browser Version.
It's quite weird, some users on the other side have no more sound notifications, they get the red notification picture but no sound at all.
soundstorm commentedon Oct 15, 2021
Also this caused the push notification limit to be reached by now (15th) while having a regular amount of 2500-3000 notifications/month.

Some of our users reported manually setting each channel to "no notifications" and then "only mentions" solved the problem, but to tell 100+ users to update possibly up to 100+ channels - that's not practical and due to reaching the push limit I can't tell everybody to do that (or at least remind them without actively opening the app).
Seems like the value of "only mentions" changed from v3.x to v4.x and wasn't migrated or something else.
RocketChat Cloud Notification Limit should be reset or the cap should be temporarily removed, as we can't do anything about it right now (as downgrade to 3.x is also not possible).
soundstorm commentedon Oct 15, 2021
fad5585
There was a change from
mobileNotificationstopushNotificationswhich is not reflected in the database:"mobileNotifications" : "mentions"will be ignored as the server now searches forpushNotificationswhich is not present (even when updating the value in the profile).[FIX] Inaccurate use of 'Mobile notifications' instead of 'Push notif…
soundstorm commentedon Oct 15, 2021
So things to be done:
mobileNotificationstopushNotificationsin DBusersThat's a dumb and unnecessary bug.
soundstorm commentedon Oct 15, 2021
@matheusbsilva137
cs35-owncloud commentedon Oct 18, 2021
Hello @soundstorm nice investigation work ! Thanks.
I hope for a patch directly to mongodb while we are waiting for an official release to fix it.
soundstorm commentedon Oct 18, 2021
Should be as easy as:
db.users.update({$rename: {"settings.preferences.mobileNotifications": "settings.preferences.pushNotifications"}})Haven't tried yet. Backup first a wise man once said.
soundstorm commentedon Oct 18, 2021
Note, that when users are updating their notification preferences between db update and final fix that the
mobileNotificationfield will be there again. Not sure how this will effect any further db migration.As our users are currently getting no push notifications whatsoever due to the cap I'll leave it like this and wait for a final fix.
matheusbsilva137 commentedon Oct 18, 2021
Hey, everyone! 👋
Sorry for this annoying behavior and thanks for providing such a detailed analysis on what is going on and suggesting ways to fix it, @soundstorm ! As you can see, we already have a PR to fix this issue from the application's side and we'll keep you posted as we work on resetting the notifications cap.
We expect to deliver this fix before the Release Candidate (which is scheduled to the 20th).
Thanks!
soundstorm commentedon Oct 18, 2021
Hey @matheusbsilva137!
Great that you're working on it.
I just tried and refined my previous update command, so that the field gets renamed correctly.
As mentioned: as soon as one user edits this preference it will be stored again as
mobileNotifications(just confirmed again after updating from mentions to all:"pushNotifications" : "mentions", "mobileNotifications" : "all"). The Frontend will still read thepushNotificationsvalue or the servers default if not updated correctly.So the PR currently only addresses the DB issue, the writing mechanisms still need to be updated, but as you said, you're working on it :)
soundstorm commentedon Oct 18, 2021
@cs35-owncloud you can try my update procedure. Tested it myself with one user (
update({"username":"xyz"},{$rename: ...}})) as I'll wait for the final fix.cs35-owncloud commentedon Oct 19, 2021
Hello everyone,
thanks for the support ! If the release comes soon I prefer to stick to it rather than patch and maybe have some downsides.
Mostly I fear my users :'D
Thanks again !
eengstrom commentedon Oct 25, 2021
Looks like the patch in #23487 is awaiting approval, but the milestone keeps getting pushed out, now indicating (just today) two revs out. Would be great to get this fixed, at least before November comes along, so sites, self-hosted or not, won't have their push notification limit artificially reached sooner than expected
Anyone heard about resetting the notification cap for those of us affected? Would that reset also apply to self-hosted users?
soundstorm commentedon Oct 28, 2021
Okay, 4.1.0 is out without the fix 🙄🤦♂️
debdutdeb commentedon Oct 28, 2021
Hey everyone - currently talking to our product manager regarding this. I'll try my best to introduce this fix as a patch release to 4.1 instead of moving to 4.2
kjordan2001 commentedon Oct 28, 2021
Seems like this should be an important patch, especially since I think it broke conversations actually updating and showing new messages for me without forcing a refresh of the room until I stumbled upon this and ran the update. I think it only affected users where that setting exists as only a few people in my organization had it enabled and it seemed fine for everyone else.
debdutdeb commentedon Oct 29, 2021
Product team confirmed that this will be shipped as a patch release with 4.1 :)
soundstorm commentedon Oct 31, 2021
But unfortunately not this month released 🙄
soundstorm commentedon Nov 4, 2021
Is there any planned release date?
soundstorm commentedon Nov 6, 2021
Why was this excluded from 4.1.1? @sampaiodiego
emikolajczak commentedon Nov 6, 2021
@soundstorm you can join to upcoming community call https://forums.rocket.chat/t/community-open-call-november-10-2021/12411 and ask rocket.chat deciders. Bug fixing in rocket.chat is totally not understandable.
cs35-owncloud commentedon Nov 9, 2021
Good news everyone, it seems it's released in 4.1.2
It's not yet available in the dockerhub so I can't tell how the fix is working.
soundstorm commentedon Nov 9, 2021
Updated right before your comment. Database is migrated, so all mobileNotifications entries are now pushNotifications and changes from the web apply to the database. But seems like the mobile App (iOS) still uses the old identifier and reads/saves to mobileNotifications 🧐
So is the REST API not updated?!
soundstorm commentedon Nov 9, 2021
Seems like the App is somehow not using the API or I don't know, since the migration file is now the only appearance of the keyword mobileNotifications.
soundstorm commentedon Nov 9, 2021
Okay, simple rename lead to a chain of failures 🤦♂️
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/69a67ea998a6db62dc7932b3851c851ac4fb1ef3/app/views/UserNotificationPreferencesView/options.js