Skip to content

Commit 938696d

Browse files
committed
feat(sync): add archived column to chats, --skip-archived flag, unread counts in sync msgs
1 parent 8a2ca7a commit 938696d

8 files changed

Lines changed: 415 additions & 305 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tgcli"
3-
version = "0.3.3"
3+
version = "0.3.4"
44
edition = "2021"
55
authors = ["Dario <me@dgrp.es>"]
66
description = "Telegram CLI tool using grammers (pure Rust MTProto)"

src/app/send.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl App {
6565

6666
// Update chat's last_message_ts
6767
self.store
68-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
68+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
6969
.await?;
7070

7171
Ok(msg.id() as i64)
@@ -196,7 +196,7 @@ impl App {
196196

197197
// Update chat's last_message_ts
198198
self.store
199-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
199+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
200200
.await?;
201201

202202
Ok(msg_id)
@@ -279,7 +279,7 @@ impl App {
279279

280280
// Update chat's last_message_ts
281281
self.store
282-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
282+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
283283
.await?;
284284

285285
Ok(msg_id)
@@ -542,7 +542,7 @@ impl App {
542542

543543
// Update chat's last_message_ts
544544
self.store
545-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
545+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
546546
.await?;
547547

548548
Ok(msg.id() as i64)
@@ -587,7 +587,7 @@ impl App {
587587

588588
// Update chat's last_message_ts
589589
self.store
590-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
590+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
591591
.await?;
592592

593593
Ok(msg.id() as i64)
@@ -644,7 +644,7 @@ impl App {
644644

645645
// Update chat's last_message_ts
646646
self.store
647-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
647+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
648648
.await?;
649649

650650
Ok(msg.id() as i64)
@@ -693,7 +693,7 @@ impl App {
693693

694694
// Update chat's last_message_ts
695695
self.store
696-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
696+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
697697
.await?;
698698

699699
Ok(msg.id() as i64)
@@ -748,7 +748,7 @@ impl App {
748748

749749
// Update chat's last_message_ts
750750
self.store
751-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
751+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
752752
.await?;
753753

754754
Ok(msg.id() as i64)
@@ -1019,7 +1019,7 @@ impl App {
10191019

10201020
// Update chat's last_message_ts
10211021
self.store
1022-
.upsert_chat(chat_id, "user", "", None, Some(now), false, None)
1022+
.upsert_chat(chat_id, "user", "", None, Some(now), false, None, false)
10231023
.await?;
10241024

10251025
Ok(msg_id)

0 commit comments

Comments
 (0)