test that the device-chat is a one-to-one-chat

This commit is contained in:
B. Petersen
2019-12-03 23:30:11 +01:00
committed by holger krekel
parent 79cdcca2d2
commit 7b83979e10

View File

@@ -2206,6 +2206,7 @@ mod tests {
let chat = Chat::load_from_db(&t.ctx, chat_id);
assert!(chat.is_ok());
let chat = chat.unwrap();
assert_eq!(chat.get_type(), Chattype::Single);
assert!(chat.is_device_talk());
assert!(!chat.is_self_talk());
assert!(!chat.can_send());