mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +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(
|
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':
|
||||||
|
@ -132,7 +132,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
|||||||
}).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