-
-
Notifications
You must be signed in to change notification settings - Fork 114
api!(jsonrpc): chat_type now contains a variant of a string enum/union. Affected places: FullChat.chat_type, BasicChat.chat_type, ChatListItemFetchResult::ChatListItem.chat_type, Event:: SecurejoinInviterProgress.chat_type and MessageSearchResult.chat_type
#7285
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
api!(jsonrpc): chat_type now contains a variant of a string enum/union. Affected places: FullChat.chat_type, BasicChat.chat_type, ChatListItemFetchResult::ChatListItem.chat_type, Event:: SecurejoinInviterProgress.chat_type and MessageSearchResult.chat_type
#7285
Conversation
chat_type now contains a variant of a string enum/union. Affected places: FullChat.chat_type, BasicChat.chat_type, ChatListItemFetchResult::ChatListItem.chat_type, Event:: SecurejoinInviterProgress.chat_type and MessageSearchResult.chat_typechat_type now contains a variant of a string enum/union. Affected places: FullChat.chat_type, BasicChat.chat_type, ChatListItemFetchResult::ChatListItem.chat_type, Event:: SecurejoinInviterProgress.chat_type and MessageSearchResult.chat_type
|
Note that merging this will have to wait until we UIs can safely update core again (i.e. at least until #7326 is merged, better until we have another core release from main). Otherwise, building Desktop main with core main will fail for an extended period of time. |
link2xt
left a comment
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 can be merged now, it will go into 2.25.0 then. UIs will have to adapt, but it is doable.
enum/union. Affected places: `FullChat.chat_type`, `BasicChat.chat_type`, `ChatListItemFetchResult::ChatListItem.chat_type`, `Event:: SecurejoinInviterProgress.chat_type` and `MessageSearchResult.chat_type`
e099e36 to
a58cc42
Compare
trying the breaking change.
Actually it will be not as breaking if you used the constants, because this pr will also change the constants.
chat_typenow contains a variant of a string enum/union. Affected places:FullChat.chat_type,BasicChat.chat_type,ChatListItemFetchResult::ChatListItem.chat_type,Event:: SecurejoinInviterProgress.chat_typeandMessageSearchResult.chat_type#7285investigate and fix python testslooks like this was simply CI failure (missing deltachat-rpc-server artifact), I just restarted it, let's see...closes #7029
Note that I had to change the constants from enum to namespace, this has the side effect, that you can no longer also use the constants as types, you need to instead prefix them with
typeofnow.