forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: mark message as read #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1101a02
feat: implement send_read_messages method for WhatsApp channel
CayoPOliveira 1d47754
feat: implement messages_read event handling and dispatch for convers…
CayoPOliveira 6416b0a
feat: enhance messages_read handling to include last_seen_at and conv…
gabrieljablonski 9a0aabc
feat: update last_seen handling to reference agent_last_seen_at for m…
gabrieljablonski a39a791
chore: fix rebase
gabrieljablonski 79c81a6
feat: update error handling
gabrieljablonski 3824985
feat: update send_read_messages to mark received messages as not sent…
gabrieljablonski fea5bac
test: controller spec
gabrieljablonski 8a55a53
test: channel listener
gabrieljablonski 56fded0
test: channel and provider
gabrieljablonski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
EDBE
|
@@ -37,6 +37,7 @@ module Events::Types | |
FIRST_REPLY_CREATED = 'first.reply.created' | ||
REPLY_CREATED = 'reply.created' | ||
MESSAGE_UPDATED = 'message.updated' | ||
MESSAGES_READ = 'messages.read' | ||
|
||
# contact events | ||
CONTACT_CREATED = 'contact.created' | ||
|
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix parameter order in test stub.
The parameter order in the test stub doesn't match the actual implementation in the
Channel::Whatsapp
model.According to the provided code snippet from
app/models/channel/whatsapp.rb
, the method calls the provider with:But the test is setting up the stub with parameters in reverse order: