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:
link2xt
2026-08-12 07:44:38 +00:00
committed by l
parent 1a41e42bda
commit ae5b27fb69
6 changed files with 11 additions and 67 deletions
-2
View File
@@ -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");
}