[fractal] misc: Fix strings and comments
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] misc: Fix strings and comments
- Date: Tue, 11 Oct 2022 12:38:07 +0000 (UTC)
commit e546769dc7fd6e9856df07d49a318f2f5396cd08
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Mon Oct 10 15:04:24 2022 +0200
misc: Fix strings and comments
src/session/content/room_history/mod.rs | 4 ++--
src/session/room/mod.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/session/content/room_history/mod.rs b/src/session/content/room_history/mod.rs
index f75bf518f..b57d85d75 100644
--- a/src/session/content/room_history/mod.rs
+++ b/src/session/content/room_history/mod.rs
@@ -819,8 +819,8 @@ impl RoomHistory {
fn need_messages(&self) -> bool {
let adj = self.imp().listview.vadjustment().unwrap();
// Load more messages when the user gets close to the end of the known room
- // history Use the page size twice to detect if the user gets close to
- // the endload_timeline
+ // history. Use the page size twice to detect if the user gets close to
+ // the end.
adj.value() < adj.page_size() * 2.0 || adj.upper() <= adj.page_size() / 2.0
}
diff --git a/src/session/room/mod.rs b/src/session/room/mod.rs
index 4d171abf5..ba7a27f35 100644
--- a/src/session/room/mod.rs
+++ b/src/session/room/mod.rs
@@ -1377,7 +1377,7 @@ impl Room {
// FIXME: We should retry the request if it fails
match handle.await.unwrap() {
Ok(_) => {},
- Err(error) => error!("Couldn’t redadct event: {}", error),
+ Err(error) => error!("Couldn’t redact event: {}", error),
};
})
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]