fix: add "setup changed" message for verified key before the message

Merge the code paths for verified and autocrypt key.
If both are changed, only one will be added.

Existing code path adds a message to all chats with the contact
rather than to 1:1 chat. If we later decide that
only 1:1 chat or only verified chats should be notified,
we can add a separate `verified_fingerprint_changed` flag.
This commit is contained in:
link2xt
2023-11-13 21:40:01 +00:00
parent c6ea4e389a
commit 224355e83a
2 changed files with 4 additions and 12 deletions

View File

@@ -244,7 +244,7 @@ def test_verified_group_recovery(acfactory, rpc) -> None:
ac1_chat_messages = snapshot.chat.get_messages()
ac2_addr = ac2.get_config("addr")
assert ac1_chat_messages[-1].get_snapshot().text == f"Changed setup for {ac2_addr}"
assert ac1_chat_messages[-2].get_snapshot().text == f"Changed setup for {ac2_addr}"
def test_verified_group_member_added_recovery(acfactory) -> None: