fluffychat merge

This commit is contained in:
ggurdin 2025-06-09 15:12:49 -04:00
commit a5d6a2ca28
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 7 additions and 5 deletions

View file

@ -51,7 +51,7 @@ extension ClientDownloadContentExtension on Client {
if (rounded) {
final image = decodeImage(imageData);
if (image != null) {
imageData = copyCropCircle(image).toUint8List();
imageData = encodePng(copyCropCircle(image));
}
}

View file

@ -18,6 +18,8 @@ import 'package:fluffychat/utils/client_manager.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions/matrix_locals.dart';
import 'package:fluffychat/utils/platform_infos.dart';
const notificationAvatarDimension = 128;
Future<void> pushHelper(
PushNotification notification, {
Client? client,
@ -166,8 +168,8 @@ Future<void> _tryPushHelper(
.downloadMxcCached(
avatar,
thumbnailMethod: ThumbnailMethod.crop,
width: 128,
height: 128,
width: notificationAvatarDimension,
height: notificationAvatarDimension,
animated: false,
isThumbnail: true,
rounded: true,
@ -188,8 +190,8 @@ Future<void> _tryPushHelper(
.downloadMxcCached(
senderAvatar,
thumbnailMethod: ThumbnailMethod.crop,
width: 128,
height: 128,
width: notificationAvatarDimension,
height: notificationAvatarDimension,
animated: false,
isThumbnail: true,
rounded: true,