Skip to content

[HOLD for payment 2023-05-16] [$1000] Make LHN Preview for Archived chats consistent #17386

Description

@mountiny

Coming from here

### Problem

Currently the preview of archived chats contains the last message sent, except if the chat is a policy expense chat. If it’s a policy expense chat, it will show the reason for the archive reason, ex: This workspace chat is no longer active because is no longer an active workspace.. This causes difference in behavior for no apparent reason, since both types of chats can have content.
In the images below there’s the before and after the workspace deletion, where all chats had content. Note that only the non policy expense chat contain the last message preview.

### Solution

Use the same behaviour for all chats, so that it is consistent.

  1. If there is some message before the room/ policy expense chat has been archived, show that message
  2. If there is no message in the archived chat, show the Closed report action message. ie This workspace has been archived because XYZ But this message will be trimmed in the preview.

image

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c1f0e5d8fc4290e0
  • Upwork Job ID: 1646456802523676672
  • Last Price Increase: 2023-04-13

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions