mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-14 16:09:31 +01:00
Merge branch 'soru/more-directory-fixes' into 'main'
fix: Make tapping on pills join if remote directory is private See merge request famedly/fluffychat!353
This commit is contained in:
commit
ce1a7e28af
@ -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