mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-14 16:09:31 +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,
|
||||
genericSearchTerm: _genericSearchTerm,
|
||||
)
|
||||
.then((PublicRoomsResponse res) {
|
||||
.catchError((error) {
|
||||
if (widget.alias == null) {
|
||||
throw error;
|
||||
}
|
||||
return PublicRoomsResponse.fromJson({
|
||||
'chunk': [],
|
||||
});
|
||||
}).then((PublicRoomsResponse res) {
|
||||
if (widget.alias != null &&
|
||||
!res.chunk.any((room) =>
|
||||
room.aliases.contains(widget.alias) ||
|
||||
|
Loading…
Reference in New Issue
Block a user