diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-04-01 16:14:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 16:14:38 +0100 |
commit | cd8fac152eb2ea9165646e08bd87e3e95bd4706a (patch) | |
tree | 8c8d0889eed060e95bf944408d6b63e6916e76c4 /syncapi/storage/tables/interface.go | |
parent | 8213b2ba3071c2426cfcc506bafc6e45e23c9925 (diff) |
Include joined and invite member counts in room summary (#2315)
* Include joined and invite member counts in room summary
This should fix #2314 and also fix the problem where some clients like Element Android, Fluffychat etc would display the wrong member count for a given room.
* Improve SQLite query precision
* Check existence of state key for membership events
Diffstat (limited to 'syncapi/storage/tables/interface.go')
-rw-r--r-- | syncapi/storage/tables/interface.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/syncapi/storage/tables/interface.go b/syncapi/storage/tables/interface.go index ba0076e2..2c29888d 100644 --- a/syncapi/storage/tables/interface.go +++ b/syncapi/storage/tables/interface.go @@ -174,6 +174,7 @@ type Receipts interface { type Memberships interface { UpsertMembership(ctx context.Context, txn *sql.Tx, event *gomatrixserverlib.HeaderedEvent, streamPos, topologicalPos types.StreamPosition) error SelectMembership(ctx context.Context, txn *sql.Tx, roomID, userID, memberships []string) (eventID string, streamPos, topologyPos types.StreamPosition, err error) + SelectMembershipCount(ctx context.Context, txn *sql.Tx, roomID, membership string, pos types.StreamPosition) (count int, err error) } type NotificationData interface { |