Skip to content

Fix compose activity infinitely loading#662

Merged
octoshrimpy merged 3 commits intoquik-sms:masterfrom
Inhishonor:conversation-loading
Jan 11, 2026
Merged

Fix compose activity infinitely loading#662
octoshrimpy merged 3 commits intoquik-sms:masterfrom
Inhishonor:conversation-loading

Conversation

@Inhishonor
Copy link
Copy Markdown
Collaborator

In some cases, (mainly on HyperOS and variants) content provider will return null if an empty conversation is created. This was breaking the compose activity as it expects some object other than null.

This commit changes the behavior to provide a new conversation object if createConversationFromCp ever returns null. This behavior could have been rolled into createConversationFromCp but I elected for a separate function as that was a tad cleaner, and made things really obvious.

While I was hunting for the cause of the infinite loading, I did some minor cleanups and error handling as well.

Closes #616
Closes #560

@Inhishonor Inhishonor marked this pull request as draft December 30, 2025 18:02
In some cases, (mainly on HyperOS and variants) content provider will return null if an empty conversation is created. This was breaking the compose activity as it expects some object other than null.

This commit changes the behavior to provide a new conversation object if createConversationFromCp ever returns null.
@Inhishonor Inhishonor marked this pull request as ready for review December 31, 2025 14:14
@octoshrimpy octoshrimpy merged commit 41b386c into quik-sms:master Jan 11, 2026
2 checks passed
@Inhishonor Inhishonor deleted the conversation-loading branch January 12, 2026 02:12
@github-actions github-actions bot mentioned this pull request Jan 12, 2026
@github-actions github-actions bot mentioned this pull request Jan 25, 2026
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.

🐞 [BUG] Messages sending problem 🐞 [getOrCreateConversation(addresses) returns null → infinite spinner on new conversation]

2 participants