mirror of
https://github.com/chatmail/core.git
synced 2026-10-03 03:30:36 +03:00
refactor: remove MessengerMessage
This value is not used for any logic except the disappearing messages timer rollback prevention. It is unlikely that non-chat clients participate in chats with disappearing messages, and the case was not tested anyway.
This commit is contained in:
@@ -390,7 +390,6 @@ async fn test_escaped_from() {
|
||||
"Имя, Фамилия",
|
||||
);
|
||||
let msg = get_chat_msg(&t, chat_id, 0, 1).await;
|
||||
assert_eq!(msg.is_dc_message, MessengerMessage::Yes);
|
||||
assert_eq!(msg.text, "hello");
|
||||
assert_eq!(msg.param.get_int(Param::WantsMdn).unwrap(), 1);
|
||||
}
|
||||
@@ -437,7 +436,6 @@ async fn test_escaped_recipients() {
|
||||
let msg = Message::load_from_db(&t, chats.get_msg_id(0).unwrap().unwrap())
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(msg.is_dc_message, MessengerMessage::No);
|
||||
assert_eq!(msg.text, "foo – hello");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user