From a85f3c6221e88004f6c8f32d27181153108222c5 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Tue, 12 Sep 2023 19:10:41 +0530 Subject: [PATCH] Updated channelAttached presence logic for queuing messages --- src/IO.Ably.Shared/Realtime/Presence.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/IO.Ably.Shared/Realtime/Presence.cs b/src/IO.Ably.Shared/Realtime/Presence.cs index 5b29ffc7a..90faf4edb 100644 --- a/src/IO.Ably.Shared/Realtime/Presence.cs +++ b/src/IO.Ably.Shared/Realtime/Presence.cs @@ -723,15 +723,6 @@ internal void ChannelSuspended(ErrorInfo error) internal void ChannelAttached(ProtocolMessage attachedMessage, bool isAttachWithoutMessageLoss = true) { - // RTP5b - SendQueuedMessages(); - - // RTP17f - if (isAttachWithoutMessageLoss) - { - EnterMembersFromInternalPresenceMap(); - } - // RTP19 StartSync(); @@ -751,6 +742,15 @@ internal void ChannelAttached(ProtocolMessage attachedMessage, bool isAttachWith { EndSync(); // RTP19 } + + // RTP5b + SendQueuedMessages(); + + // RTP17f + if (isAttachWithoutMessageLoss) + { + EnterMembersFromInternalPresenceMap(); + } } private void SendQueuedMessages()