[fractal] Remove initial as argument for backend::sync
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Remove initial as argument for backend::sync
- Date: Wed, 2 Dec 2020 16:16:55 +0000 (UTC)
commit c36e53d02ce28db6e499e025408003baab4c661b
Author: Alejandro Domínguez <adomu net-c com>
Date: Wed Dec 2 09:51:01 2020 +0100
Remove initial as argument for backend::sync
fractal-gtk/src/appop/sync.rs | 1 -
fractal-gtk/src/backend/sync.rs | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/fractal-gtk/src/appop/sync.rs b/fractal-gtk/src/appop/sync.rs
index 9f036fbc..b72d969c 100644
--- a/fractal-gtk/src/appop/sync.rs
+++ b/fractal-gtk/src/appop/sync.rs
@@ -30,7 +30,6 @@ impl AppOp {
login_data.session_client,
login_data.uid,
since,
- initial,
number_tries,
)
.await;
diff --git a/fractal-gtk/src/backend/sync.rs b/fractal-gtk/src/backend/sync.rs
index a5d58f4d..78d4b682 100644
--- a/fractal-gtk/src/backend/sync.rs
+++ b/fractal-gtk/src/backend/sync.rs
@@ -76,9 +76,9 @@ pub async fn sync(
session_client: MatrixClient,
user_id: UserId,
since: Option<String>,
- initial: bool,
number_tries: u32,
) -> Result<SyncRet, SyncError> {
+ let initial = since.is_none();
let timeline_not_types = [String::from("m.call.*")];
let timeline_types = [String::from("m.room.message"), String::from("m.sticker")];
let state_types = [String::from("m.room.*")];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]