diff options
| author | Marvin W <git@larma.de> | 2026-03-14 13:42:58 +0800 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-04-08 19:02:44 +0200 |
| commit | 64757cbe2572259ad201f4c691aeb545088ae42a (patch) | |
| tree | 6c3de38252417500ab1234687bd413e29dcc4d1b /libdino/src/entity | |
| parent | 82da21c1a67d5a50d0a4940b5e3c687929b041c2 (diff) | |
Add implementation for XEP-0202 Entity Time
Diffstat (limited to 'libdino/src/entity')
| -rw-r--r-- | libdino/src/entity/settings.vala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libdino/src/entity/settings.vala b/libdino/src/entity/settings.vala index 14ac106e..c71a8e57 100644 --- a/libdino/src/entity/settings.vala +++ b/libdino/src/entity/settings.vala @@ -9,6 +9,7 @@ public class Settings : Object { send_typing_ = col_to_bool_or_default("send_typing", true); send_marker_ = col_to_bool_or_default("send_marker", true); + share_time_ = col_to_bool_or_default("share_time", true); notifications_ = col_to_bool_or_default("notifications", true); convert_utf8_smileys_ = col_to_bool_or_default("convert_utf8_smileys", true); check_spelling = col_to_bool_or_default("check_spelling", true); @@ -43,6 +44,18 @@ public class Settings : Object { } } + private bool share_time_; + public bool share_time { + get { return share_time_; } + set { + db.settings.upsert() + .value(db.settings.key, "share_time", true) + .value(db.settings.value, value.to_string()) + .perform(); + share_time_ = value; + } + } + private bool notifications_; public bool notifications { get { return notifications_; } |
