fix: trash message about group name change from non-member

This commit is contained in:
link2xt
2026-04-06 04:46:30 +02:00
committed by l
parent 00c06c490b
commit f33e21ccb9
2 changed files with 81 additions and 52 deletions

View File

@@ -4403,7 +4403,9 @@ async fn test_keep_member_list_if_possibly_nomember() -> Result<()> {
SystemTime::shift(Duration::from_secs(60));
chat::set_chat_name(fiona, fiona_chat_id, "Renamed").await?;
bob.recv_msg(&fiona.pop_sent_msg().await).await;
// Message about chat name change from non-member is trashed.
bob.recv_msg_trash(&fiona.pop_sent_msg().await).await;
// Bob missed the message adding fiona, but mustn't recreate the member list or apply the group
// name change.