mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-14 16:09:31 +01:00
Merge branch 'soru/fix-regressions' into 'main'
fix: Emote settings and discovery fallback See merge request famedly/fluffychat!366
This commit is contained in:
commit
e38879d37f
@ -161,8 +161,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':
|
||||
|
@ -110,7 +110,7 @@ class _DiscoverState extends State<Discover> {
|
||||
}).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