mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-29 01:22:37 +01:00
fix: Emote settings and discovery fallback
This commit is contained in:
parent
b079e2bcf5
commit
8f8b8d8bf7
@ -162,8 +162,8 @@ class FluffyRoutes {
|
||||
return ViewData(
|
||||
leftView: (_) => Settings(),
|
||||
mainView: (_) => EmotesSettings(
|
||||
room: (settings.arguments as Map)['room'],
|
||||
stateKey: (settings.arguments as Map)['stateKey'],
|
||||
room: ((settings.arguments ?? {}) as Map)['room'],
|
||||
stateKey: ((settings.arguments ?? {}) as Map)['stateKey'],
|
||||
),
|
||||
);
|
||||
case 'ignore':
|
||||
|
@ -132,7 +132,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
}).then((PublicRoomsResponse res) {
|
||||
if (widget.alias != null &&
|
||||
!res.chunk.any((room) =>
|
||||
room.aliases.contains(widget.alias) ||
|
||||
(room.aliases?.contains(widget.alias) ?? false) ||
|
||||
room.canonicalAlias == widget.alias)) {
|
||||
// we have to tack on the original alias
|
||||
res.chunk.add(PublicRoom.fromJson(<String, dynamic>{
|
||||
|
Loading…
Reference in New Issue
Block a user