From 6122161f8af6a9c25c4c5cb3f445448a4cc78c06 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Mon, 4 May 2026 23:23:38 -0500 Subject: [PATCH 1/2] animate apngs and changeset fixes --- .changeset/add_better_misc_data_styling.md | 2 +- .changeset/fix_apng_animation.md | 5 +++++ .changeset/info-change-credits.md | 2 +- src/app/components/RenderMessageContent.tsx | 6 +++++- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .changeset/fix_apng_animation.md diff --git a/.changeset/add_better_misc_data_styling.md b/.changeset/add_better_misc_data_styling.md index 70e10a2bb..eb06df969 100644 --- a/.changeset/add_better_misc_data_styling.md +++ b/.changeset/add_better_misc_data_styling.md @@ -1,5 +1,5 @@ --- -default: fix +default: patch --- Fix spam-clicking abbreviations crashing sable diff --git a/.changeset/fix_apng_animation.md b/.changeset/fix_apng_animation.md new file mode 100644 index 000000000..bdc2b9f39 --- /dev/null +++ b/.changeset/fix_apng_animation.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix apng files not animating. \ No newline at end of file diff --git a/.changeset/info-change-credits.md b/.changeset/info-change-credits.md index 5595fa861..f1a8a806d 100644 --- a/.changeset/info-change-credits.md +++ b/.changeset/info-change-credits.md @@ -1,5 +1,5 @@ --- -default: info +default: patch --- Update verbiage in the credits diff --git a/src/app/components/RenderMessageContent.tsx b/src/app/components/RenderMessageContent.tsx index 533c1f82f..9591b2565 100644 --- a/src/app/components/RenderMessageContent.tsx +++ b/src/app/components/RenderMessageContent.tsx @@ -337,11 +337,15 @@ function RenderMessageContentInternal({ const info = (content as { info?: { mimetype?: string } }).info; const isGif = info?.mimetype === 'image/gif' || + info?.mimetype === 'image/apng' || info?.mimetype === 'image/webp' || (content.body as string)?.toLowerCase().endsWith('.gif') || + (content.body as string)?.toLowerCase().endsWith('.apng') || (content.body as string)?.toLowerCase().endsWith('.webp') || (typeof (content as { url?: string }).url === 'string' && - (content as { url?: string }).url?.toLowerCase().includes('gif')); + ((content as { url?: string }).url?.toLowerCase().endsWith('.gif') || + (content as { url?: string }).url?.toLowerCase().endsWith('.apng') || + (content as { url?: string }).url?.toLowerCase().endsWith('.webp'))); return renderCaptionedAttachment( Date: Mon, 4 May 2026 23:28:19 -0500 Subject: [PATCH 2/2] add other user to founders --- .changeset/fix_apng_animation.md | 2 +- .changeset/fix_set_dmed_as_founder.md | 5 +++++ src/app/features/create-chat/CreateChat.tsx | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix_set_dmed_as_founder.md diff --git a/.changeset/fix_apng_animation.md b/.changeset/fix_apng_animation.md index bdc2b9f39..4f3bfa250 100644 --- a/.changeset/fix_apng_animation.md +++ b/.changeset/fix_apng_animation.md @@ -2,4 +2,4 @@ default: patch --- -Fix apng files not animating. \ No newline at end of file +Fix apng files not animating. diff --git a/.changeset/fix_set_dmed_as_founder.md b/.changeset/fix_set_dmed_as_founder.md new file mode 100644 index 000000000..cccea698e --- /dev/null +++ b/.changeset/fix_set_dmed_as_founder.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix other dmed party not being added as a founder by default when creating a dm. diff --git a/src/app/features/create-chat/CreateChat.tsx b/src/app/features/create-chat/CreateChat.tsx index 0a6df5602..492e9a1c4 100644 --- a/src/app/features/create-chat/CreateChat.tsx +++ b/src/app/features/create-chat/CreateChat.tsx @@ -39,6 +39,9 @@ export function CreateChat({ defaultUserId }: CreateChatProps) { visibility: Visibility.Private, preset: Preset.TrustedPrivateChat, initial_state: initialState, + creation_content: { + additional_creators: [userId], + }, }); addRoomIdToMDirect(mx, result.room_id, userId);