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: Don't crash if a conversation has no participants #978

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

nikclayton
Copy link
Contributor

It's possible for some servers to return a conversation that has an empty (or possibly missing) accounts property. In the previous code this would crash trying to access an item in an empty list.

Fix this by handling the "no participants" case.

Fixes #971

It's possible for some servers to return a conversation that has an
empty (or possibly missing) `accounts` property. In the previous code
this would crash trying to access an item in an empty list.

Fix this by handling the "no participants" case.

Fixes #971
@nikclayton nikclayton merged commit ec27aa2 into main Oct 4, 2024
23 checks passed
@nikclayton nikclayton deleted the 971-no-conversation-participants branch October 4, 2024 09:28
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.

[gotosocial] Pachli application crashes on some specific tabs.
1 participant