iachat/spec/factories/channel
Cayo P. R. Oliveira a3effacc21
Feat: improve read receipts (#56)
* feat: add store in additional_attributes to conversation model

* feat: set default mark_as_read to true in additional_attributes for conversation params

* fix: remove mark_as_read from additional_attributes in conversation

* refactor: move message read logic to mark_messages_as_read method in ConversationsController

* feat: add 'Mark messages as read' option to WhatsApp channel settings

* feat: add 'mark_as_read' option in factorie  for WhatsApp channel

* feat: integrate Checkbox component for 'mark as read' option in WhatsApp settings

* fix: ensure 'mark_as_read' option is included in channel creation payload

* feat: add 'Mark as read' settings for WhatsApp inbox, including UI and state management

* chore: remove redundant content update test from IncomingMessageBaileysService spec

* feat: update 'Mark as read' label to 'Read receipts' and replace Checkbox with Switch component in WhatsApp settings

* fix: handle potential nil value for 'mark_as_read' in provider config

* feat: refactor provider config to streamline channel creation with 'mark_as_read' option

* feat: add test for MESSAGE_READ event dispatch in update_last_seen action

* fix: update subheader for 'Mark as read' setting to read receipt behavior in WhatsApp

* feat: update mark_messages_as_read behavior to handle false value in provider config

* chore: update label for 'Mark as read' option

* feat: update update_last_seen to send WhatsApp read receipt for WhatsApp channels

* test: remove MESSAGE_READ event dispatch tests in wrong file

* feat: enhance update_last_seen behavior for WhatsApp channel to conditionally dispatch messages.read event

* feat: update update_last_seen to dispatch messages.read event

* test: refactor update_last_seen tests

* chore: refactor to ensure provider_service responds to read_messages before ensure the mark_as_read provider config

* test: enhance #read_messages with provider config mark_as_read expected behaviors

* chore: clarify test names and remove useless expect

---------

Co-authored-by: gabrieljablonski <contact@gabrieljablonski.com>
2025-06-03 23:28:15 -03:00
..
channel_api.rb Feature: API Channel (#1052) 2020-07-21 12:15:24 +05:30
channel_email.rb fix(refactor): Cleanup the specs and the logic for FetchIMAP job (#8766) 2024-02-10 14:03:50 -08:00
channel_instagram.rb feat: Added the ability to create Instagram channel (#11182) 2025-04-03 13:57:14 +05:30
channel_line.rb feat: Line Channel (#2904) 2021-09-11 01:31:17 +05:30
channel_sms.rb chore: Provider APIs for SMS Channel - Bandwidth (#3889) 2022-02-03 15:22:13 -08:00
channel_telegram.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
channel_whatsapp.rb Feat: improve read receipts (#56) 2025-06-03 23:28:15 -03:00
channel_widget.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
facebook_pages.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30
instagram_channel.rb fix: Automatically remove expired story mention (#5300) 2022-12-08 15:55:24 +03:00
twilio_sms.rb feat: Support Twilio Messaging Services (#4242) 2022-07-08 18:20:07 +05:30
twitter_profiles.rb Chore: Web widget Inbox Tech Debts (#738) 2020-04-19 23:40:28 +05:30