diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-06-13 15:11:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 15:11:10 +0100 |
commit | 4c2a10f1a61a79ed8bbe17af1b28532c3d24c261 (patch) | |
tree | 0e7d3305a13b150828d8eb82ca34cbe1b68b546e /syncapi/routing | |
parent | c50095858341cc051e2db97fb85a1bb985f90c66 (diff) |
Handle state before, send history visibility in output (#2532)
* Check state before event
* Tweaks
* Refactor a bit, include in output events
* Don't waste time if soft failed either
* Tweak control flow, comments, use GMSL history visibility type
Diffstat (limited to 'syncapi/routing')
-rw-r--r-- | syncapi/routing/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/routing/context.go b/syncapi/routing/context.go index 96438e18..d021d365 100644 --- a/syncapi/routing/context.go +++ b/syncapi/routing/context.go @@ -97,7 +97,7 @@ func Context( state, _ := syncDB.CurrentState(ctx, roomID, &stateFilter, nil) // verify the user is allowed to see the context for this room/event for _, x := range state { - var hisVis string + var hisVis gomatrixserverlib.HistoryVisibility hisVis, err = x.HistoryVisibility() if err != nil { continue |