Fixes #156 - Deprecate "shout" event#488
Open
xprazak2 wants to merge 1 commit intopapercups-io:masterfrom
Open
Fixes #156 - Deprecate "shout" event#488xprazak2 wants to merge 1 commit intopapercups-io:masterfrom
xprazak2 wants to merge 1 commit intopapercups-io:masterfrom
Conversation
cca3fa0 to
95e27c5
Compare
Author
|
I think the removal can be done in 3 steps:
|
95e27c5 to
c37afad
Compare
reichert621
requested changes
Dec 23, 2020
Collaborator
reichert621
left a comment
There was a problem hiding this comment.
just one small nitpick, and could we also handle this in the notification_channel as well?
thanks!
| # It is also common to receive messages from the client and | ||
| # broadcast to everyone in the current topic (conversation:lobby). | ||
| def handle_in("shout", payload, socket) do | ||
| defp handle_in_msg(event_name, payload, socket) do |
Collaborator
There was a problem hiding this comment.
nitpick -- can we name this something like handle_incoming_message instead? i think it's a bit more explicit :)
also let's move this to the bottom with the other private methods so we can fix the warning below 👍
Author
There was a problem hiding this comment.
I renamed the method and moved it to the bottom - naming is hard ;-)
I also made similar changes in notification_channel.
351569b to
2bfd0f6
Compare
reichert621
requested changes
Jan 3, 2021
| assert_push("shout", _msg) | ||
| end | ||
|
|
||
| test "message:created broadcasts to notification:lobby", %{ |
Collaborator
There was a problem hiding this comment.
looks like this test is failing?
2bfd0f6 to
a45dda8
Compare
Deprecate "shout" event for conversation channel in favor of "message:created".
a45dda8 to
f20e3c0
Compare
osbre
added a commit
to osbre/papercups
that referenced
this pull request
Feb 25, 2026
Deprecate "shout" event for conversation and notification channels in favor of "message:created". The old event still works but logs a deprecation warning. Adapted from papercups-io#488 with conflict resolution to preserve file_ids, mentioned_user_ids, private message handling, and other features added since the original PR. Co-Authored-By: Ondrej Prazak <o.prazak5@seznam.cz>
osbre
added a commit
to osbre/papercups
that referenced
this pull request
Feb 25, 2026
Deprecate "shout" event for conversation and notification channels in favor of "message:created". The old event still works but logs a deprecation warning. Adapted from papercups-io#488 with conflict resolution to preserve file_ids, mentioned_user_ids, private message handling, and other features added since the original PR. Co-Authored-By: Ondrej Prazak <o.prazak5@seznam.cz>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecate "shout" event for conversation channel
in favor of "message:created".
Issue
#156