Group Description: Render newlines, view button in change notification

This commit is contained in:
Scott Nonnenberg 2021-06-04 09:27:04 -07:00 committed by GitHub
parent 15678efb4d
commit 3956443f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 28 deletions

View file

@ -181,6 +181,8 @@ export type GroupV2AdminApprovalRemoveOneChangeType = {
export type GroupV2DescriptionChangeType = {
type: 'description';
removed?: boolean;
// Adding this field; cannot remove previous field for backwards compatibility
description?: string;
};
export type GroupV2ChangeDetailType =
@ -3654,6 +3656,7 @@ function extractDiffs({
details.push({
type: 'description',
removed: !current.description,
description: current.description,
});
}