fix(pinned): Return pinned messages when requesting the overview

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-10-30 11:57:19 +01:00
parent bfd33aabaa
commit 32060653a1
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0
3 changed files with 4 additions and 0 deletions

View file

@ -1571,6 +1571,7 @@ class ChatController extends AEnvironmentAwareOCSController {
Attachment::TYPE_LOCATION,
Attachment::TYPE_MEDIA,
Attachment::TYPE_OTHER,
Attachment::TYPE_PINNED,
Attachment::TYPE_POLL,
Attachment::TYPE_RECORDING,
Attachment::TYPE_VOICE,

View file

@ -32,6 +32,7 @@ class Attachment extends Entity {
public const TYPE_LOCATION = 'location';
public const TYPE_MEDIA = 'media';
public const TYPE_OTHER = 'other';
public const TYPE_PINNED = 'pinned';
public const TYPE_POLL = 'poll';
public const TYPE_RECORDING = 'recording';
public const TYPE_VOICE = 'voice';

View file

@ -373,6 +373,7 @@ Feature: delete
| poll | 0 |
| voice | 0 |
| recording | 0 |
| pinned | 0 |
When user "participant1" deletes file "welcome.txt"
Then user "participant1" sees the following shared file in room "public room" with 200
And user "participant1" sees the following shared summarized overview in room "public room" with 200
@ -385,6 +386,7 @@ Feature: delete
| poll | 0 |
| voice | 0 |
| recording | 0 |
| pinned | 0 |
And user "participant1" sees the following messages in room "public room" with 200
| room | actorType | actorId | actorDisplayName | message | messageParameters |
| public room | users | participant1 | participant1-displayname | *You shared a file which is no longer available* | {"actor":{"type":"user","id":"participant1","name":"participant1-displayname","mention-id":"participant1"}} |