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()