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

Fix historical thread message order during backfill #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

redgoat650
Copy link
Contributor

Fix thread order when backfilling history.

Currently when backfilling, the bridge seems to post thread messages in reverse chronological order.
Slack thread:
thread-order-slack

Matrix thread backfilled before this change:
thread-order-mautrix-slack-main

Preventing the convertedMessages slice from being reversed for threads results in threads appearing in the expected order:
Matrix thread backfilled after this change:
thread-order-mautrix-slack-fix

@tulir
Copy link
Member

tulir commented Oct 22, 2024

Weird, I guess conversations.replies returns messages in the opposite order compared to conversations.history 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants