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

Access db on background thread #302

Merged
merged 1 commit into from
Feb 2, 2025
Merged

Conversation

naveensingh
Copy link
Member

What is it?

  • Bugfix
  • Feature
  • Codebase improvement

Description of the changes in your PR

  • Moved Context.getConversations() call in ensureBackgroundThread lambda

(The code was being called on the main thread since e3f7d80. This came into light only because the getConversations() method now also accesses a Room DB and Room as usual throws error about operations on the main thread).

Fixes the following issue(s)

Acknowledgement

@naveensingh naveensingh added the testers needed We need testers for this issue or pull request label Feb 1, 2025
Aga-C
Aga-C previously approved these changes Feb 1, 2025
@naveensingh naveensingh merged commit efaa231 into master Feb 2, 2025
4 of 6 checks passed
@naveensingh naveensingh deleted the access_db_in_background branch February 2, 2025 02:32
@naveensingh naveensingh removed the testers needed We need testers for this issue or pull request label Feb 2, 2025
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.

[Toast error] illegalStateException
2 participants