-
Notifications
You must be signed in to change notification settings - Fork 184
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
feat: openExternalLink returns a { opened: boolean }
result
#282
Changes from 1 commit
2faa932
73a6285
13e5550
0bdbc6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,10 @@ export const GetChannelPermissionsResponse = zod.object({ | |
permissions: zod.bigint().or(zod.string()), | ||
}); | ||
|
||
export const OpenExternalLinkResponse = zod.object({ | ||
opened: zod.boolean(), | ||
}); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. general question: how does this behave against a version of the client that doesn't send the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a good callout There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would defaulting this to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call. I've updated this to use |
||
export {InitiateImageUploadResponseSchema as InitiateImageUploadResponse}; | ||
|
||
/** | ||
|
@@ -162,8 +166,9 @@ function parseResponseData({cmd, data}: zod.infer<typeof ResponseFrame>) { | |
return SubscribeResponse.parse(data); | ||
case Commands.USER_SETTINGS_GET_LOCALE: | ||
return UserSettingsGetLocaleResponse.parse(data); | ||
// Empty Responses | ||
case Commands.OPEN_EXTERNAL_LINK: | ||
return OpenExternalLinkResponse.parse(data); | ||
// Empty Responses | ||
case Commands.SET_ORIENTATION_LOCK_STATE: | ||
case Commands.SET_CERTIFIED_DEVICES: | ||
case Commands.SEND_ANALYTICS_EVENT: | ||
|
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.
nit - we don't bump the package version in the PR, it happens automatically via the
release please
github action.nit - I think this is a feature, not a patch
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.
Ah, I didn't realize! I have reverted to 1.7.0