mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-11 00:25:34 +00:00
Return the latest message in room list for display
This commit is contained in:
parent
2eb884766a
commit
a37bc3f81e
3 changed files with 58 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue