Diff
Logged in as anonymous

Differences From Artifact [5610b717c8]:

To Artifact [32cfc4300b]:


35
36
37
38
39
40
41






42
43
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49







+
+
+
+
+
+


		("someone", 0),
		("root", -1),
		("unknown@example.com", 0),
	];
	for (email, id) in cases {
		assert_eq!(*server.get_id(email)?, ChatPeerId::from(id), "email [{email}] expected to return id [{id}]");
	}
	let cases = [
		"someone@otherdomain.net",
	];
	for email in cases {
		assert!(server.get_id(email).unwrap_err().to_string().contains("Doesn't look like address from one of our domains."), "email [{email}] expected to fail");
	}
	Ok(())
}