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

Allow creating new bookmark when there are no existing bookmarks #1570

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

Conversation

kkonsw
Copy link

@kkonsw kkonsw commented Apr 2, 2024

Currently first-time join (with an invite and without any bookmarks) fails to create a new bookmark for a conversation due to early return in the set_autojoin function.

This PR removes early return to allow the call to the add_conference function (to create a new bookmark).

This commit removes early return from the set_autojoin function
to allow creating a new bookmark (with add_conference function).
@fiaxh
Copy link
Member

fiaxh commented Apr 4, 2024

Thanks for your PR.

Did you test this change with legacy bookmarks (xep 0048) or bookmarks2 (xep 402)?

I see one issue with this change in combination with the add_conference function from the legacy bookmarks implementation. It uses the same get_bookmarks function and then operates on the return value. Since the return value might be null, we should to create a new Set before accessing it.

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.

None yet

2 participants