feat(social): show friend presence and require online listening
ci / api / api (push) Successful in 1m11s
ci / db / db (push) Failing after 23s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 1m29s
ci / ts / ts (packages + web) (push) Successful in 3m15s
ci / contract / contract (сгенерированный код совпадает с openapi.yaml) (push) Successful in 1m27s

This commit is contained in:
mrleo1nid committed 2026-10-23 12:52:00 +03:00
1 parent 582c0dc3d4
commit cd84ceecb2
26 files changed
+574 -400

No files matched your search

+4 -1
View File
@@ -2357,12 +2357,15 @@ components:
playlist_name: {type: string}
SocialPerson:
type: object
required: [id, username, display_name, relationship, unread]
required: [id, username, display_name, relationship, unread, online]
properties:
id: {type: string, format: uuid}
username: {type: string}
display_name: {type: string}
relationship: {type: string, enum: [none, incoming, outgoing, friend, blocked]}
online:
type: boolean
description: A current friend has an active client heartbeat within 45 seconds. Independent of music visibility; false for non-friends and blocked people.
unread: {type: integer}
activity: {$ref: '#/components/schemas/ListeningActivity'}
last_message: {$ref: '#/components/schemas/SocialMessagePreview'}