mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-04 00:04:13 -04:00
Merge pull request #456 from matrix-org/store_event_actions
Send unread notification counts
This commit is contained in:
commit
c232780081
19 changed files with 541 additions and 36 deletions
|
@ -259,7 +259,10 @@ class RegisterRestServlet(RestServlet):
|
|||
def _do_guest_registration(self):
|
||||
if not self.hs.config.allow_guest_access:
|
||||
defer.returnValue((403, "Guest access is disabled"))
|
||||
user_id, _ = yield self.registration_handler.register(generate_token=False)
|
||||
user_id, _ = yield self.registration_handler.register(
|
||||
generate_token=False,
|
||||
make_guest=True
|
||||
)
|
||||
access_token = self.auth_handler.generate_access_token(user_id, ["guest = true"])
|
||||
defer.returnValue((200, {
|
||||
"user_id": user_id,
|
||||
|
|
|
@ -311,6 +311,7 @@ class SyncRestServlet(RestServlet):
|
|||
if joined:
|
||||
ephemeral_events = filter.filter_room_ephemeral(room.ephemeral)
|
||||
result["ephemeral"] = {"events": ephemeral_events}
|
||||
result["unread_notification_count"] = room.unread_notification_count
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue