You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
I'm seeing duplicate messages when sending from MXKRoomViewController. It seems these are "local echo" messages, which are supposed to be removed after the message sent to the server.
In -[MXKRoomDataSource refreshEventListeners:] - the event listener is created. It checks if there are outgoing messages, and then attempts to find the local echo.
Two problems: room.outgoingMessages.count is zero. But even if that check is removed, pendingLocalEchoRelatedToEvent: returns nil.
The two messages in the room are almost identical - so i'm not sure how the matrix kit or matrix sdk is supposed to reliably detect the local echo. For example:
Anyone have any thoughts on why the local echo detection might be failing? Any workarounds? This issue happens consistently for me (and I'm not doing anything weird).
The text was updated successfully, but these errors were encountered:
Figured it out. Apparently you need to attach a store to your session. You have MXNoStore, MXMemoryStore or MXFileStore. For example:
letsession=MXSession(matrixRestClient: authenticatedRestClient)!
letstore=MXMemoryStore()
session.setStore(store){ response inguard case .success = response else{fatalError("unable to set store")}
session.start{ response in
// ...
}}
Would be nice for Matrix SDX to warn that a store was missing! Hopefully this issue can help someone else from some head-scratching.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm seeing duplicate messages when sending from
MXKRoomViewController
. It seems these are "local echo" messages, which are supposed to be removed after the message sent to the server.In
-[MXKRoomDataSource refreshEventListeners:]
- the event listener is created. It checks if there are outgoing messages, and then attempts to find the local echo.Two problems:
room.outgoingMessages.count
is zero. But even if that check is removed,pendingLocalEchoRelatedToEvent:
returns nil.The two messages in the room are almost identical - so i'm not sure how the matrix kit or matrix sdk is supposed to reliably detect the local echo. For example:
Anyone have any thoughts on why the local echo detection might be failing? Any workarounds? This issue happens consistently for me (and I'm not doing anything weird).
The text was updated successfully, but these errors were encountered: