refactor: Display all sticker packs in same editor with filterchips

This commit is contained in:
krille-chan 2025-11-20 19:50:27 +01:00
commit 3c86da7932
No known key found for this signature in database
6 changed files with 76 additions and 124 deletions

View file

@ -31,19 +31,8 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
super.dispose();
}
void goToEmoteSettings() async {
final room = widget.room;
// okay, we need to test if there are any emote state events other than the default one
// if so, we need to be directed to a selection screen for which pack we want to look at
// otherwise, we just open the normal one.
if ((room.states['im.ponies.room_emotes'] ?? <String, Event>{})
.keys
.any((String s) => s.isNotEmpty)) {
context.push('/rooms/${room.id}/details/multiple_emotes');
} else {
context.push('/rooms/${room.id}/details/emotes');
}
}
void goToEmoteSettings() =>
context.push('/rooms/${widget.room.id}/details/emotes');
@override
Widget build(BuildContext context) {