Skip to content

Conversation

@Simon-Laux
Copy link
Member

@Simon-Laux Simon-Laux commented Oct 8, 2025

depends on chatmail/core#7285 probably part of core 2.26

also depends on #5531

@Simon-Laux Simon-Laux added the wait-for-core Waiting for an related core issue to be resolved label Oct 8, 2025
@Simon-Laux Simon-Laux changed the base branch from main to remove-video-chat-invitation October 8, 2025 17:30
@Simon-Laux Simon-Laux force-pushed the simon/adapt-to-chattype-string-union branch from 5337e31 to 13b018e Compare October 8, 2025 17:33
Copy link
Member Author

Choose a reason for hiding this comment

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

this extra typeof is because I changed how the constants are exported to fix some weird type issues

@Simon-Laux Simon-Laux force-pushed the simon/adapt-to-chattype-string-union branch from 13b018e to 2ff9ffa Compare October 8, 2025 17:40
Base automatically changed from remove-video-chat-invitation to main October 10, 2025 08:39
@Simon-Laux Simon-Laux changed the title adapt to jsonrpc api change: chat_type as string union refactor: adapt to jsonrpc api change: chat_type as string union Oct 16, 2025
@Simon-Laux Simon-Laux force-pushed the simon/adapt-to-chattype-string-union branch from dd055e4 to 4f57b8f Compare November 6, 2025 12:48
@Simon-Laux Simon-Laux added the new-core involves or requires an core update label Nov 6, 2025
@Simon-Laux Simon-Laux marked this pull request as ready for review November 6, 2025 12:50
@Simon-Laux Simon-Laux removed the wait-for-core Waiting for an related core issue to be resolved label Nov 6, 2025
@link2xt
Copy link
Collaborator

link2xt commented Nov 11, 2025

I have released core 2.26.0 with this breaking change, so this needs to be merged now.

@nicodh
Copy link
Member

nicodh commented Nov 11, 2025

We will do the release 2.25.0 before and then merge it

@WofWca WofWca self-assigned this Nov 12, 2025
@WofWca WofWca force-pushed the simon/adapt-to-chattype-string-union branch from 4f57b8f to 1b39ec8 Compare November 12, 2025 09:11
Copy link
Member

@WofWca WofWca left a comment

Choose a reason for hiding this comment

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

I hope you don't mind that I rebased this. There was only one conflict which was easy to resolve.

I have checked all the places, and none seem to mix up the new types.
I have also checked that the old variable names are no longer in the code base.

This adds some type casts, but the situation is still better than what we had before.

This can be merged as soon as we upgrade core.

// (but not e.g. in groups consisting of 2 members).
// https://github.com/chatmail/core/blob/738dc5ce197f589131479801db2fbd0fb0964599/src/calls.rs#L147
chat.chatType === C.DC_CHAT_TYPE_SINGLE &&
chat.chatType === "Single" &&
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
chat.chatType === "Single" &&
chat.chatType === 'Single' &&

This will fix all lint warnings.

@WofWca WofWca removed their assignment Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-core involves or requires an core update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants