[core] fix message reactions empty for channels preview

This commit is contained in:
devlikepro committed 2025-03-27 14:36:32 +07:00
1 parent e65e6764fa
commit 6059a29660
1 file changed
+3
+3
View File
@@ -31,6 +31,9 @@ function splitAt(str: string, index) {
}
export function sortObjectByValues(obj: any) {
if (!obj) {
return obj;
}
return Object.fromEntries(
// @ts-ignore
Object.entries(obj).sort(([, v1], [, v2]) => v2 - v1),