mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
fix(pinned): Return pinned messages when requesting the overview
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
bfd33aabaa
commit
32060653a1
3 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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"}} |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue