diff --git a/src/reaction.rs b/src/reaction.rs index d8ad4b5bb..1af05b0c9 100644 --- a/src/reaction.rs +++ b/src/reaction.rs @@ -287,12 +287,14 @@ pub async fn get_msg_reactions(context: &Context, msg_id: MsgId) -> Result Result<()> { + let mut tcm = TestContextManager::new(); + let alice1 = tcm.alice().await; + let alice2 = tcm.alice().await; + + alice1 + .set_config(Config::Selfstatus, Some("New status")) + .await?; + + let alice2_msg = tcm.send_recv(&alice1, &alice2, "Hi!").await; + assert_eq!( + alice2.get_config(Config::Selfstatus).await?.as_deref(), + Some("New status") + ); + + // Alice reacts to own message from second device, + // first device receives rection. + { + send_reaction(&alice2, alice2_msg.id, "👍").await?; + let msg = alice2.pop_sent_msg().await; + alice1.recv_msg(&msg).await; + } + + // Check that the status is still the same. + assert_eq!( + alice1.get_config(Config::Selfstatus).await?.as_deref(), + Some("New status") + ); + Ok(()) + } }