Add forgotten status to Room Details API (#13503)

This commit is contained in:
Dirk Klimpel 2022-08-17 11:42:01 +02:00 committed by GitHub
parent c6ee9c0ee4
commit d75512d19e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 101 additions and 1 deletions

View file

@ -303,6 +303,7 @@ class RoomRestServlet(RestServlet):
members = await self.store.get_users_in_room(room_id)
ret["joined_local_devices"] = await self.store.count_devices_by_users(members)
ret["forgotten"] = await self.store.is_locally_forgotten_room(room_id)
return HTTPStatus.OK, ret