Return the latest message in room list for display

This commit is contained in:
oxalica 2024-09-03 15:08:35 -04:00
parent 2eb884766a
commit a37bc3f81e
3 changed files with 58 additions and 7 deletions

View file

@ -244,11 +244,24 @@ components:
rooms:
type: array
items:
$ref: '#/components/schemas/RoomMetadata'
$ref: '#/components/schemas/RoomMetadataForList'
next_token:
type: string
description: An opaque token to fetch the next page.
RoomMetadataForList:
type: object
required: ['ruuid', 'title', 'attrs']
properties:
ruuid:
type: string
title:
type: string
attrs:
type: int64
last_chat:
$ref: 'WithSig<ChatPayload>'
RoomMetadata:
type: object
properties: