Skip to content

Notifications on all activity / server version 4.0.1 #23447

Closed

Description

@hoppedmalt

Description:

Steps to reproduce:

  1. Use rocket chat

Expected behavior:

Get audible notification if you are mentioned.

Actual behavior:

Get audible notification on every single message, on any channel.

Server Setup Information:

  • Version of Rocket.Chat Server: 4.0.1
  • Operating System: Linux
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version: both
  • Operating System: macos

Additional context

Default notification setting selected on all channels, resulting in this behaviour. Problem appeared after the server was upgraded to version 4.0.1.

Activity

  1. cs35-owncloud commented on Oct 14, 2021

    @cs35-owncloud

    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.

  2. soundstorm commented on Oct 15, 2021

    @soundstorm
    Contributor

    Also this caused the push notification limit to be reached by now (15th) while having a regular amount of 2500-3000 notifications/month.
    Bildschirmfoto 2021-10-15 um 19 21 51

    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).

  3. soundstorm commented on Oct 15, 2021

    @soundstorm
    Contributor

    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).

  4. soundstorm commented on Oct 15, 2021

    @soundstorm
    Contributor

    So things to be done:

    • Add migration from mobileNotifications to pushNotifications in DB users
    • Update profile settings read/save logic to reflect changes not only the labels
    • Reset notification cap for 4.0.x users

    That's a dumb and unnecessary bug.

  5. soundstorm commented on Oct 15, 2021

    @soundstorm
    Contributor
  6. cs35-owncloud commented on Oct 18, 2021

    @cs35-owncloud

    So things to be done:

    • Add migration from mobileNotifications to pushNotifications in DB users
    • Update profile settings read/save logic to reflect changes not only the labels
    • Reset notification cap for 4.0.x users

    That's a dumb and unnecessary bug.

    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.

  7. soundstorm commented on Oct 18, 2021

    @soundstorm
    Contributor

    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.

  8. soundstorm commented on Oct 18, 2021

    @soundstorm
    Contributor

    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.

  9. matheusbsilva137 commented on Oct 18, 2021

    @matheusbsilva137
    Contributor

    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!

  10. soundstorm commented on Oct 18, 2021

    @soundstorm
    Contributor

    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 :)

  11. soundstorm commented on Oct 18, 2021

    @soundstorm
    Contributor

    @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.

    db.users.update({$rename: {"settings.preferences.mobileNotifications": "settings.preferences.pushNotifications"}})

  12. cs35-owncloud commented on Oct 19, 2021

    @cs35-owncloud

    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 !

  13. eengstrom commented on Oct 25, 2021

    @eengstrom
    Sponsor

    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?

  14. soundstorm commented on Oct 28, 2021

    @soundstorm
    Contributor

    Okay, 4.1.0 is out without the fix 🙄🤦‍♂️

  15. debdutdeb commented on Oct 28, 2021

    @debdutdeb
    Member

    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

  16. kjordan2001 commented on Oct 28, 2021

    @kjordan2001

    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.

  17. debdutdeb commented on Oct 29, 2021

    @debdutdeb
    Member

    Product team confirmed that this will be shipped as a patch release with 4.1 :)

  18. soundstorm commented on Oct 31, 2021

    @soundstorm
    Contributor

    But unfortunately not this month released 🙄

  19. soundstorm commented on Nov 4, 2021

    @soundstorm
    Contributor

    Is there any planned release date?

  20. soundstorm commented on Nov 6, 2021

    @soundstorm
    Contributor

    Why was this excluded from 4.1.1? @sampaiodiego

  21. emikolajczak commented on Nov 6, 2021

    @emikolajczak

    @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.

  22. cs35-owncloud commented on Nov 9, 2021

    @cs35-owncloud

    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.

  23. soundstorm commented on Nov 9, 2021

    @soundstorm
    Contributor

    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?!

  24. soundstorm commented on Nov 9, 2021

    @soundstorm
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions