diff options
author | Devon Johnson <djohnson1865@gmail.com> | 2020-10-17 21:07:34 -0700 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-19 15:12:37 +0100 |
commit | 45abdcaeb967ea54e1edbe3c1f1d73d1a82a2904 (patch) | |
tree | a6c51a599c0b6ef19cfbea9c26f1cce977c30794 | |
parent | 6e63df1d9a3eadf924d518a1a02f04dfd03ad6b1 (diff) |
Send state after event, not current
Signed-off-by: Devon Johnson <djohnson1865@gmail.com>
-rw-r--r-- | clientapi/routing/state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/state.go b/clientapi/routing/state.go index 2a424cbe..f69b54bb 100644 --- a/clientapi/routing/state.go +++ b/clientapi/routing/state.go @@ -141,7 +141,7 @@ func OnIncomingStateRequest(ctx context.Context, device *userapi.Device, rsAPI a util.GetLogger(ctx).WithError(err).Error("Failed to QueryMembershipForUser") return jsonerror.InternalServerError() } - for _, ev := range stateRes.StateEvents { + for _, ev := range stateAfterRes.StateEvents { stateEvents = append( stateEvents, gomatrixserverlib.HeaderedToClientEvent(ev, gomatrixserverlib.FormatAll), |