[fractal] Ignore self typing notifications
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Ignore self typing notifications
- Date: Tue, 2 Jul 2019 06:08:33 +0000 (UTC)
commit 1dbb81e1fe7ce208def99ba1d7d676b09aed74a1
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Wed Jun 26 21:37:28 2019 +0200
Ignore self typing notifications
fractal-matrix-api/src/backend/sync.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/fractal-matrix-api/src/backend/sync.rs b/fractal-matrix-api/src/backend/sync.rs
index 109a582f..33e57ab2 100644
--- a/fractal-matrix-api/src/backend/sync.rs
+++ b/fractal-matrix-api/src/backend/sync.rs
@@ -135,6 +135,10 @@ pub fn sync(bk: &Backend, new_since: Option<String>, initial: bool) -> Result<()
{
for user in typing_users {
let user: String = from_value(user.to_owned()).unwrap();
+ // ignoring the user typing notifications
+ if user == userid {
+ continue;
+ }
typing.push(Member {
uid: user,
alias: None,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]