Skip to content
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

Received messages appear as sent messages #6335

Closed
abbyad opened this issue Mar 28, 2020 · 7 comments
Closed

Received messages appear as sent messages #6335

abbyad opened this issue Mar 28, 2020 · 7 comments
Assignees
Labels
Messages Affects the Messages page Priority: 1 - High Blocks the next release. Type: Bug Fix something that isn't working as intended

Comments

@abbyad
Copy link
Contributor

abbyad commented Mar 28, 2020

Describe the bug
In the Messages tab, when a message is sent the received messages shown above don't display properly, and appear as sent messages with content mixed with sent messages. Messages all appear as expected after refreshing the page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Messages to a contact with received messages
  2. Send a message
  3. See Received messages

Expected behavior
Appearance of sent and received messages should not change when a new message is sent.

Screenshots
Progression from left to right, prior to sending, immediately after, and then after refreshing:
image

Environment

  • Instance: cht-covid.dev
  • Browser: Chrome 80
  • Client platform: Windows
  • App: webapp, logged in as admin user
  • Version: ciha-rapidpro-support, which is branched off of 3.8 but no known changes to the Messages tab.

Additional context
Refreshing resets the messages to their expected location and color.

@abbyad abbyad added Type: Bug Fix something that isn't working as intended Messages Affects the Messages page labels Mar 28, 2020
@helizabetholsen
Copy link

Thanks for flagging this @abbyad cc @michaelkohn

@garethbowen garethbowen added the Priority: 1 - High Blocks the next release. label Mar 29, 2020
@dianabarsan dianabarsan self-assigned this Apr 1, 2020
@dianabarsan
Copy link
Member

Ready for AT on 6335-correct-message-labels.
A bunch of message actions have been refactored, so please make sure that loading long treads works correctly, also updates to loaded threads.
(do remember that admins don't watch the changes feed with include_docs, so to view new received messages that are not authored by themselves, they need to refresh the page).

@abbyad
Copy link
Contributor Author

abbyad commented Apr 15, 2020

A bunch of message actions have been refactored, so please make sure that loading long treads works correctly, also updates to loaded threads.

I had noticed just recently that clicking between message conversations before the previous one is fully loaded can end up merging both conversation threads. Keep that in mind with testing this issue, and report if it is happening.

@dianabarsan
Copy link
Member

@abbyad if this happened before, I don't think anything I've changed in my PR would have fixed it, unfortunately.

@ngaruko ngaruko assigned ngaruko and unassigned ngaruko Apr 22, 2020
@peter-ochieng
Copy link
Contributor

I am AT this ticket.

@newtewt newtewt self-assigned this May 4, 2020
@newtewt
Copy link
Contributor

newtewt commented May 5, 2020

This looks good to me. Tested larger convos, convos back n forth offline and letting it sync on the timer and seeing the message order correct. @dianabarsan feel free to merge and close.

dianabarsan added a commit that referenced this issue May 5, 2020
Also changes how message and message-content controllers react when receiving changes.

#6335
@dianabarsan
Copy link
Member

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Messages Affects the Messages page Priority: 1 - High Blocks the next release. Type: Bug Fix something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

7 participants