mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +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(
|
return ViewData(
|
||||||
leftView: (_) => Settings(),
|
leftView: (_) => Settings(),
|
||||||
mainView: (_) => EmotesSettings(
|
mainView: (_) => EmotesSettings(
|
||||||
room: (settings.arguments as Map)['room'],
|
room: ((settings.arguments ?? {}) as Map)['room'],
|
||||||
stateKey: (settings.arguments as Map)['stateKey'],
|
stateKey: ((settings.arguments ?? {}) as Map)['stateKey'],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
case 'ignore':
|
case 'ignore':
|
||||||
|
@ -110,7 +110,7 @@ class _DiscoverState extends State<Discover> {
|
|||||||
}).then((PublicRoomsResponse res) {
|
}).then((PublicRoomsResponse res) {
|
||||||
if (widget.alias != null &&
|
if (widget.alias != null &&
|
||||||
!res.chunk.any((room) =>
|
!res.chunk.any((room) =>
|
||||||
room.aliases.contains(widget.alias) ||
|
(room.aliases?.contains(widget.alias) ?? false) ||
|
||||||
room.canonicalAlias == widget.alias)) {
|
room.canonicalAlias == widget.alias)) {
|
||||||
// we have to tack on the original alias
|
// we have to tack on the original alias
|
||||||
res.chunk.add(PublicRoom.fromJson(<String, dynamic>{
|
res.chunk.add(PublicRoom.fromJson(<String, dynamic>{
|
||||||
|
Loading…
Reference in New Issue
Block a user