mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 02:32:54 +01:00
fix: Make tapping on pills join if remote directory is private
This commit is contained in:
parent
4561424a53
commit
8ffb3db8c9
@ -122,7 +122,14 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
|||||||
server: server,
|
server: server,
|
||||||
genericSearchTerm: _genericSearchTerm,
|
genericSearchTerm: _genericSearchTerm,
|
||||||
)
|
)
|
||||||
.then((PublicRoomsResponse res) {
|
.catchError((error) {
|
||||||
|
if (widget.alias == null) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
return PublicRoomsResponse.fromJson({
|
||||||
|
'chunk': [],
|
||||||
|
});
|
||||||
|
}).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) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user