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 /clientapi/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 'clientapi/routing')
-rw-r--r-- | clientapi/routing/aliases.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/aliases.go b/clientapi/routing/aliases.go index 504d6026..68d0f419 100644 --- a/clientapi/routing/aliases.go +++ b/clientapi/routing/aliases.go @@ -44,7 +44,7 @@ func GetAliases( return util.ErrorResponse(fmt.Errorf("rsAPI.QueryCurrentState: %w", err)) } - visibility := "invite" + visibility := gomatrixserverlib.HistoryVisibilityInvited if historyVisEvent, ok := stateRes.StateEvents[stateTuple]; ok { var err error visibility, err = historyVisEvent.HistoryVisibility() |