chore: Improve sticker editor UX
This commit is contained in:
parent
726de6e92b
commit
ed945311d9
2 changed files with 42 additions and 45 deletions
|
|
@ -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(() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue