test: Fix one panic in test_broadcasts_name_and_avatar, but there is another one where I couldn't find the problem

This commit is contained in:
Hocuri
2025-08-01 22:26:24 +02:00
parent df2693f307
commit 37f6da1cc9

View File

@@ -2808,7 +2808,7 @@ async fn test_broadcasts_name_and_avatar() -> Result<()> {
assert_eq!(alice_chat.typ, Chattype::OutBroadcast);
let alice_chat = Chat::load_from_db(alice, alice_chat_id).await?;
assert_eq!(alice_chat.is_promoted(), false);
assert_eq!(alice_chat.is_promoted(), true); // Broadcast channels are never unpromoted
let sent = alice.send_text(alice_chat_id, "Hi nobody").await;
let alice_chat = Chat::load_from_db(alice, alice_chat_id).await?;
assert_eq!(alice_chat.is_promoted(), true);