Skip to content

test: status updates do not extend ephemeral message deletion of apps - #8909

Open
r10s wants to merge 1 commit into
mainfrom
r10s/test-webxdc-vs-ephemeral-messages
Open

r10s wants to merge 1 commit into
mainfrom
r10s/test-webxdc-vs-ephemeral-messages

Conversation

@r10s

@r10s r10s commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

this PR tests the current state of "Disappearing Messages" being used for apps - actually, status updates do not extend or reset the disappearing messages timer - different to "Delete Message from Device", where this was done explicitly at #5388

there is some confusion about that, at least i have it, and in that regard also the part following "NOTE:" in this forum thread is wrong: https://forum.delta.chat/t/delete-messages-but-not-in-chat-app-updates/5920/2 cc @adbenitez

if we want to have a different behavior, we should still merge this PR, and open a subsequent issue/PR then

@r10s
r10s requested review from iequidoo and link2xt November 7, 2026 23:12
@r10s
r10s force-pushed the r10s/test-webxdc-vs-ephemeral-messages branch 3 times, most recently from d8c5a62 to 5e04ccb Compare November 7, 2026 23:39
@r10s
r10s force-pushed the r10s/test-webxdc-vs-ephemeral-messages branch from 5e04ccb to 96c8b67 Compare November 7, 2026 23:45

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn test_status_update_vs_ephemeral_timer() -> Result<()> {
let alice = &TestContext::new_alice().await;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New tests better use TestContextManager, even if there is only one context, but definitely if there are multiple contexts:

let mut tcm = TestContextManager::new();
let alice = &tcm.alice().await;
let bob = &tcm.bob().await;

This currently has not much advantage since with_log_sink() is removed, but if it is restored or more features are implemented in the context manager, then test will use it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants