[fractal] Apply suggestion to fractal-gtk/src/appop/directory.rs
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Apply suggestion to fractal-gtk/src/appop/directory.rs
- Date: Tue, 23 Jun 2020 08:27:27 +0000 (UTC)
commit 954ef2d4aa57dea61b735a4fd7d2580bddbe0516
Author: Alejandro DomÃnguez <adomu net-c com>
Date: Tue Jun 23 05:36:58 2020 +0000
Apply suggestion to fractal-gtk/src/appop/directory.rs
fractal-gtk/src/appop/directory.rs | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/fractal-gtk/src/appop/directory.rs b/fractal-gtk/src/appop/directory.rs
index 3a74492c..50c647a5 100644
--- a/fractal-gtk/src/appop/directory.rs
+++ b/fractal-gtk/src/appop/directory.rs
@@ -136,6 +136,11 @@ impl AppOp {
}
let search_term = q.get_text().unwrap().to_string();
+ if let RoomSearchPagination::NoMorePages = self.directory_pagination {
+ // there are no more rooms. We don't need to request for more
+ return;
+ }
+
let rooms_since = self.directory_pagination.clone().into();
let tx = self.backend.clone();
thread::spawn(move || {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]