Skip to content

Commit a7eab13

Browse files
committed
test: message with empty To: field should have a valid to_id
1 parent d26a274 commit a7eab13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/receive_imf/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,6 +2221,7 @@ Message content",
22212221

22222222
let msg = t.get_last_msg().await;
22232223
assert_eq!(msg.chat_id, t.get_self_chat().await.id);
2224+
assert_eq!(msg.to_id, ContactId::SELF);
22242225
}
22252226

22262227
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]

0 commit comments

Comments
 (0)