chore: Improve sticker editor UX

This commit is contained in:
krille-chan 2025-11-20 19:17:04 +01:00
commit ed945311d9
No known key found for this signature in database
2 changed files with 42 additions and 45 deletions

View file

@ -175,8 +175,7 @@ class EmotesSettingsController extends State<EmotesSettings> {
?.tryGetMap<String, Object?>(stateKey ?? '') !=
null;
bool get readonly =>
room == null ? false : !(room!.canSendEvent('im.ponies.room_emotes'));
bool get readonly => room?.canSendEvent('im.ponies.room_emotes') ?? false;
void resetAction() {
setState(() {