From c7da04b7f9ab6a396b95043c431b49bf1487636f Mon Sep 17 00:00:00 2001 From: Marat Al Date: Mon, 12 Feb 2024 22:50:42 +0100 Subject: [PATCH] Update according to the new RTP17i spec. --- Source/ARTRealtimeChannel.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ARTRealtimeChannel.m b/Source/ARTRealtimeChannel.m index 7cf34cc2d..d9c66a22c 100644 --- a/Source/ARTRealtimeChannel.m +++ b/Source/ARTRealtimeChannel.m @@ -753,8 +753,8 @@ - (void)setAttached:(ARTProtocolMessage *)message { } ARTChannelStateChange *stateChange = [[ARTChannelStateChange alloc] initWithCurrent:self.state_nosync previous:self.state_nosync event:ARTChannelEventUpdate reason:message.error resumed:message.resumed]; [self emit:stateChange.event with:stateChange]; - [self.presenceMap reenterLocalMembers]; // RTP17f, see https://github.com/ably/ably-cocoa/pull/1714/files#r1423868598 thread } + [self.presenceMap reenterLocalMembers]; // RTP17i return; } @@ -768,7 +768,7 @@ - (void)setAttached:(ARTProtocolMessage *)message { [_attachedEventEmitter emit:nil with:nil]; [self.presence sendPendingPresence]; - [self.presenceMap reenterLocalMembers]; // RTP17f + [self.presenceMap reenterLocalMembers]; // RTP17i } - (void)setDetached:(ARTProtocolMessage *)message {