mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00: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
ce80f8f2ef
1 changed files with 8 additions and 1 deletions
|
@ -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 a new issue