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

MXThreadingService: Add thread creation delegate method #1381

Merged
merged 4 commits into from
Feb 25, 2022

Conversation

ismailgulek
Copy link
Contributor

Improve MXThreadingServiceDelegate by adding a new method for thread creation, with a direction property.

@objc optional func threadingServiceDidUpdateThreads(_ service: MXThreadingService)

/// Delegate method to be called when a new local thread is created
@objc optional func threadingService(_ service: MXThreadingService,
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't quite wrap my head around the concept of direction for a newly created thread. Does new imply empty? And if so, how is direction used?

Copy link
Contributor Author

@ismailgulek ismailgulek Feb 24, 2022

Choose a reason for hiding this comment

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

It's actually a similar logic with a message, either you get it live, or you can see a new event coming from the server when back paginating. A thread is also the same, either it's created by a live event, or it's recreated by some old events when back paginating.

@ismailgulek ismailgulek merged commit 04462a4 into hotfix/1.8.2 Feb 25, 2022
@ismailgulek ismailgulek deleted the ismail/5694_scroll_bottom_fix branch February 25, 2022 08:47
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