Enable chatsv2 on TruthSocial

This commit is contained in:
Alex Gleason 2022-12-06 15:25:40 -06:00
parent 3aff4ee715
commit e1c80920ed
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 8 additions and 2 deletions

View File

@ -215,7 +215,10 @@ const getInstanceFeatures = (instance: Instance) => {
* Pleroma chats API. * Pleroma chats API.
* @see {@link https://docs.pleroma.social/backend/development/API/chats/} * @see {@link https://docs.pleroma.social/backend/development/API/chats/}
*/ */
chats: v.software === TRUTHSOCIAL || (v.software === PLEROMA && gte(v.version, '2.1.0') && v.build !== AKKOMA), chats: any([
v.software === TRUTHSOCIAL,
v.software === PLEROMA && gte(v.version, '2.1.0') && v.build !== AKKOMA,
]),
/** /**
* Ability to delete a chat. * Ability to delete a chat.
@ -239,7 +242,10 @@ const getInstanceFeatures = (instance: Instance) => {
* Paginated chats API. * Paginated chats API.
* @see GET /api/v2/chats * @see GET /api/v2/chats
*/ */
chatsV2: v.software === PLEROMA && gte(v.version, '2.3.0'), chatsV2: any([
v.software === TRUTHSOCIAL,
v.software === PLEROMA && gte(v.version, '2.3.0'),
]),
/** /**
* Ability to only chat with people that follow you. * Ability to only chat with people that follow you.