mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Set avatar on only single action available
This commit is contained in:
parent
c712644d64
commit
6d4588fc3c
@ -280,7 +280,7 @@ class ChatDetailsController extends State<ChatDetails> {
|
||||
),
|
||||
];
|
||||
final action = actions.length == 1
|
||||
? actions.single
|
||||
? actions.single.key
|
||||
: await showModalActionSheet<AvatarAction>(
|
||||
context: context,
|
||||
title: L10n.of(context)!.editRoomAvatar,
|
||||
|
@ -57,7 +57,7 @@ class SettingsController extends State<Settings> {
|
||||
),
|
||||
];
|
||||
final action = actions.length == 1
|
||||
? actions.single
|
||||
? actions.single.key
|
||||
: await showModalActionSheet<AvatarAction>(
|
||||
context: context,
|
||||
title: L10n.of(context)!.changeYourAvatar,
|
||||
|
Loading…
Reference in New Issue
Block a user