mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
Move over EvTracker to a normal event sender
I considered removing it from the context by default, but the migration test really wants to have the tracker initialised from the very first event and not after the context is initialised. It is easier for now to leave it hardcoded instead of adding an API to explicitly require enabling it via the builder.
This commit is contained in:
@@ -2029,7 +2029,7 @@ CCCB 5AA9 F6E1 141C 9431
|
||||
|
||||
alice1
|
||||
.evtracker
|
||||
.get_matching(|e| e == EventType::SelfavatarChanged)
|
||||
.get_matching(|e| matches!(e, EventType::SelfavatarChanged))
|
||||
.await;
|
||||
|
||||
// Bob sends a message so that Alice can encrypt to him.
|
||||
@@ -2059,7 +2059,7 @@ CCCB 5AA9 F6E1 141C 9431
|
||||
assert!(alice2.get_config(Config::Selfavatar).await?.is_some());
|
||||
alice2
|
||||
.evtracker
|
||||
.get_matching(|e| e == EventType::SelfavatarChanged)
|
||||
.get_matching(|e| matches!(e, EventType::SelfavatarChanged))
|
||||
.await;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user