-
-
Notifications
You must be signed in to change notification settings - Fork 203
refactor: adapt to jsonrpc api change: chat_type as string union #5530
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
base: main
Are you sure you want to change the base?
Conversation
5337e31 to
13b018e
Compare
There was a problem hiding this comment.
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
13b018e to
2ff9ffa
Compare
dd055e4 to
4f57b8f
Compare
|
I have released core 2.26.0 with this breaking change, so this needs to be merged now. |
|
We will do the release 2.25.0 before and then merge it |
4f57b8f to
1b39ec8
Compare
There was a problem hiding this 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" && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| chat.chatType === "Single" && | |
| chat.chatType === 'Single' && |
This will fix all lint warnings.
depends on chatmail/core#7285 probably part of core 2.26
also depends on #5531