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

Quick Work around to remove stuck messages #3004

Merged
merged 3 commits into from
Mar 16, 2021

Conversation

BillCarsonFr
Copy link
Member

Quick work around to remove stuck messages at the bottom of timeline.
Currently only choice is to clear cache and do a full initial sync.
This PR is just adding an option to cancel sent but not synced message, only effect is that it will delete the local echo.

image

This does not fix the root issues, See:
#516
matrix-org/synapse#9424
matrix-org/synapse#9624

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one small remark. Also, any idea of the root cause?

actionPermissions: ActionPermissions,
messageContent: MessageContent?,
msgType: String?) {
if (timelineEvent.root.sendState == SendState.SENT) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is already done before calling this method, so we could remove it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Root cause is complex and hard to catch on synapse side, two main scenario could cause that:

@bmarty
Copy link
Member

bmarty commented Mar 16, 2021

LGTM, just one small remark. Also, any idea of the root cause?

Never mind, I did not see the link to Synapse issues. Thanks

@bmarty
Copy link
Member

bmarty commented Mar 16, 2021

(Please fix the warning in the code)

@bmarty bmarty merged commit 12b927f into develop Mar 16, 2021
@bmarty bmarty deleted the feature/bca/workaround_stuck_message branch March 16, 2021 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants