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

When setting realtime channel options, pass through to REST channel #1266

Conversation

lawrence-forooghian
Copy link
Collaborator

When calling -[ARTRealtimeChannel setOptions:callback:], the passed options are not used to update the options of this instance’s REST channel. This means that, for example, if we update the realtime channel’s cipher options, these options will not be used to decrypt messages subsequently fetched using the -history:* methods.

I think this is something we missed when fixing #1207.

This issue is causing ably/ably-flutter#296.

Closes #1265.

We want to handle arguments that don’t support NSCopying.

I assume the original intention was to return something to the caller
that couldn’t be mutated under their feet, but I think I’d expect a spy
method like this to accurately report the exact instance that was
received.
@lawrence-forooghian lawrence-forooghian self-assigned this Jan 19, 2022
When calling -[ARTRealtimeChannel setOptions:callback:], the passed
options are not used to update the options of this instance’s REST
channel. This means that, for example, if we update the realtime
channel’s cipher options, these options will not be used to decrypt
messages subsequently fetched using the -history:* methods.

I think this is something we missed when fixing #1207 (34d68ec).

This issue is causing ably/ably-flutter#296.

Closes #1265.
@lawrence-forooghian lawrence-forooghian force-pushed the 1265-updating-rest-channel-options-should-update-underlying-rest-channel branch from c4f4f20 to 71250a0 Compare January 19, 2022 20:50
@lawrence-forooghian lawrence-forooghian marked this pull request as ready for review January 19, 2022 21:34
@QuintinWillison QuintinWillison merged commit e2faf66 into main Jan 20, 2022
@QuintinWillison QuintinWillison deleted the 1265-updating-rest-channel-options-should-update-underlying-rest-channel branch January 20, 2022 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Updating ARTRealtimeChannel’s options doesn’t update the options of its ARTRestChannelInternal
5 participants