mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
More tweaks
This commit is contained in:
parent
f76c9fb2cc
commit
bd2b406404
|
|
@ -59,7 +59,7 @@ func HistoryVisibilityForRoom(authEvents []*gomatrixserverlib.Event) gomatrixser
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if vis, err := ev.HistoryVisibility(); err == nil {
|
if vis, err := ev.HistoryVisibility(); err == nil {
|
||||||
return vis
|
visibility = vis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return visibility
|
return visibility
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
"github.com/lib/pq"
|
||||||
|
"github.com/matrix-org/util"
|
||||||
|
|
||||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||||
"github.com/matrix-org/dendrite/roomserver/storage/tables"
|
"github.com/matrix-org/dendrite/roomserver/storage/tables"
|
||||||
"github.com/matrix-org/dendrite/roomserver/types"
|
"github.com/matrix-org/dendrite/roomserver/types"
|
||||||
"github.com/matrix-org/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const stateSnapshotSchema = `
|
const stateSnapshotSchema = `
|
||||||
|
|
@ -91,6 +92,7 @@ const bulkSelectStateForHistoryVisibilitySQL = `
|
||||||
WHERE state_snapshot_nid = $1
|
WHERE state_snapshot_nid = $1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
ORDER BY depth ASC
|
||||||
) AS roomserver_events
|
) AS roomserver_events
|
||||||
INNER JOIN roomserver_event_state_keys
|
INNER JOIN roomserver_event_state_keys
|
||||||
ON roomserver_events.event_state_key_nid = roomserver_event_state_keys.event_state_key_nid
|
ON roomserver_events.event_state_key_nid = roomserver_event_state_keys.event_state_key_nid
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue