mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-05 00:02:22 -08:00
remove some unnecessary data from account data
This commit is contained in:
1 parent
5117d56f28
commit
2f9be8c82f
2 files changed
+11
-1
No files matched your search
@@ -226,7 +226,16 @@ export function GifItem({
|
||||
setFavorited(true);
|
||||
await mx
|
||||
.setAccountData(MATRIX_SABLE_UNSTABLE_FAVORITE_GIFS, {
|
||||
gifs: [...favoritedContent.gifs, { ...gif, url: mxcUrl }],
|
||||
gifs: [
|
||||
...favoritedContent.gifs,
|
||||
{
|
||||
title: gif.title,
|
||||
url: mxcUrl,
|
||||
width: gif.width,
|
||||
height: gif.height,
|
||||
size: gif.size,
|
||||
},
|
||||
],
|
||||
})
|
||||
.catch(() => setFavorited(false));
|
||||
} else {
|
||||
|
||||
@@ -430,6 +430,7 @@ export const ImageContent = as<'div', ImageContentProps>(
|
||||
url: url,
|
||||
width: imageW,
|
||||
height: imageH,
|
||||
size: info?.size,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user