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

[SDK-4009] Refactoring presence #1870

Merged
merged 15 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions Ably.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Source/ARTConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ - (NSString *)createRecoveryKey_nosync {
NSMutableDictionary<NSString *, NSString *> *channelSerials = [NSMutableDictionary new];
for (ARTRealtimeChannelInternal *const channel in _realtime.channels.nosyncIterable) {
if (channel.state_nosync == ARTRealtimeChannelAttached) {
channelSerials[channel.name] = channel.serial;
channelSerials[channel.name] = channel.channelSerial;
}
}

Expand Down
228 changes: 0 additions & 228 deletions Source/ARTPresenceMap.m

This file was deleted.

3 changes: 1 addition & 2 deletions Source/ARTRealtime.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#import "ARTWebSocketTransport+Private.h"
#import "ARTOSReachability.h"
#import "ARTNSArray+ARTFunctional.h"
#import "ARTPresenceMap.h"
#import "ARTProtocolMessage.h"
#import "ARTProtocolMessage+Private.h"
#import "ARTEventEmitter+Private.h"
Expand Down Expand Up @@ -254,7 +253,7 @@ - (instancetype)initWithOptions:(ARTClientOptions *)options {
_msgSerial = recoveryKey.msgSerial; // RTN16f
for (NSString *const channelName in recoveryKey.channelSerials) {
ARTRealtimeChannelInternal *const channel = [_channels get:channelName];
channel.serial = recoveryKey.channelSerials[channelName]; // RTN16j
channel.channelSerial = recoveryKey.channelSerials[channelName]; // RTN16j
}
}
}
Expand Down
Loading
Loading