mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Delete private messages when their timers expire (needs UI support).
This commit is contained in:
@@ -53,8 +53,7 @@ internal fun DeletionResult.output() = JsonDict(
|
||||
"hasIntroductionSessionInProgress" to hasIntroductionSessionInProgress(),
|
||||
"hasInvitationSessionInProgress" to hasInvitationSessionInProgress(),
|
||||
"hasNotAllIntroductionSelected" to hasNotAllIntroductionSelected(),
|
||||
"hasNotAllInvitationSelected" to hasNotAllInvitationSelected(),
|
||||
"hasNotFullyDownloaded" to hasNotFullyDownloaded()
|
||||
"hasNotAllInvitationSelected" to hasNotAllInvitationSelected()
|
||||
)
|
||||
|
||||
internal fun MessagesAckedEvent.output() = JsonDict(
|
||||
|
||||
@@ -386,15 +386,13 @@ internal class MessagingControllerImplTest : ControllerTest() {
|
||||
if (Random.nextBoolean()) result.addInvitationSessionInProgress()
|
||||
if (Random.nextBoolean()) result.addIntroductionNotAllSelected()
|
||||
if (Random.nextBoolean()) result.addIntroductionSessionInProgress()
|
||||
if (Random.nextBoolean()) result.addNotFullyDownloaded()
|
||||
val json = """
|
||||
{
|
||||
"allDeleted": ${result.allDeleted()},
|
||||
"hasIntroductionSessionInProgress": ${result.hasIntroductionSessionInProgress()},
|
||||
"hasInvitationSessionInProgress": ${result.hasInvitationSessionInProgress()},
|
||||
"hasNotAllIntroductionSelected": ${result.hasNotAllIntroductionSelected()},
|
||||
"hasNotAllInvitationSelected": ${result.hasNotAllInvitationSelected()},
|
||||
"hasNotFullyDownloaded": ${result.hasNotFullyDownloaded()}
|
||||
"hasNotAllInvitationSelected": ${result.hasNotAllInvitationSelected()}
|
||||
}
|
||||
"""
|
||||
assertJsonEquals(json, result.output())
|
||||
|
||||
Reference in New Issue
Block a user