fix: remove unneccesary cast due to "," which throws an error

This commit is contained in:
Jacques 2025-04-22 14:41:24 +02:00
parent 74823e4c1e
commit b2f0e1318b

View file

@ -193,18 +193,16 @@ class _Body extends StatelessWidget {
);
var targetUser = user ??
(
chat != null
? UserModel(
id: UniqueKey().toString(),
firstName: chat?.chatName,
imageUrl: chat?.imageUrl,
)
: UserModel(
id: UniqueKey().toString(),
firstName: options.translations.groupNameEmpty,
),
) as UserModel;
(chat != null
? UserModel(
id: UniqueKey().toString(),
firstName: chat?.chatName,
imageUrl: chat?.imageUrl,
)
: UserModel(
id: UniqueKey().toString(),
firstName: options.translations.groupNameEmpty,
));
return Stack(
children: [