core: confirm ttl change to ensure consistent setting (#1587)

* core: confirm ttl change to ensure consistent setting

* wip

* confirm_pref_pending

* xInfo

* test api

* send confirmPrefProfile

* refactor

* don't return contact

* refactor profile update

* refactor further

* refactor further

* refactor xInfo

* refactor xInfo further

* refactor
This commit is contained in:
JRoberts
2022-12-20 22:00:46 +04:00
committed by GitHub
parent 5e9b7366cc
commit 34e08b2058
7 changed files with 119 additions and 35 deletions
+2 -3
View File
@@ -3587,9 +3587,8 @@ testEnableTimedMessagesContact =
alice <## "you updated preferences for bob:"
alice <## "Disappearing messages: off (you allow: yes, after 1 sec, contact allows: no)"
bob <## "alice updated preferences for you:"
bob <## "Disappearing messages: off (you allow: default (no), contact allows: yes, after 1 sec)"
-- TODO bob ##> "/set disappear @alice yes"
bob ##> "/_set prefs @2 {\"timedMessages\": {\"allow\": \"yes\", \"ttl\": 1}}"
bob <## "Disappearing messages: off (you allow: no, contact allows: yes, after 1 sec)"
bob ##> "/set disappear @alice yes"
bob <## "you updated preferences for alice:"
bob <## "Disappearing messages: enabled (you allow: yes, after 1 sec, contact allows: yes, after 1 sec)"
alice <## "bob updated preferences for you:"