[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)
Gregory Igelmund
notifications at github.com
Mon Oct 23 10:36:39 UTC 2023
@grekko commented on this pull request.
> @@ -127,6 +134,23 @@ def mark
render :action => "no_such_message", :status => :not_found
end
+ # Moves message into Inbox by unsetting the muted-flag
+ def unmute
+ message = Message.where(:recipient => current_user).find(params[:message_id])
> This never actually changes the state of the message, so nothing happens when you click the Unmute button for a message in the user interface.
this is just the query for the `message`-record. 2 lines below `message.unmute` is called.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284#discussion_r1368463987
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4284/review/1692222023 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231023/1b5f0a5f/attachment.htm>
More information about the rails-dev
mailing list