mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Send legacy private messages from headless app.
This commit is contained in:
@@ -73,7 +73,7 @@ constructor(
|
|||||||
|
|
||||||
val group = messagingManager.getContactGroup(contact)
|
val group = messagingManager.getContactGroup(contact)
|
||||||
val now = clock.currentTimeMillis()
|
val now = clock.currentTimeMillis()
|
||||||
val m = privateMessageFactory.createPrivateMessage(group.id, now, text, emptyList())
|
val m = privateMessageFactory.createLegacyPrivateMessage(group.id, now, text)
|
||||||
|
|
||||||
messagingManager.addLocalMessage(m)
|
messagingManager.addLocalMessage(m)
|
||||||
return ctx.json(m.output(contact.id, text))
|
return ctx.json(m.output(contact.id, text))
|
||||||
|
|||||||
@@ -115,11 +115,10 @@ internal class MessagingControllerImplTest : ControllerTest() {
|
|||||||
every { messagingManager.getContactGroup(contact) } returns group
|
every { messagingManager.getContactGroup(contact) } returns group
|
||||||
every { clock.currentTimeMillis() } returns timestamp
|
every { clock.currentTimeMillis() } returns timestamp
|
||||||
every {
|
every {
|
||||||
privateMessageFactory.createPrivateMessage(
|
privateMessageFactory.createLegacyPrivateMessage(
|
||||||
group.id,
|
group.id,
|
||||||
timestamp,
|
timestamp,
|
||||||
text,
|
text
|
||||||
emptyList()
|
|
||||||
)
|
)
|
||||||
} returns privateMessage
|
} returns privateMessage
|
||||||
every { messagingManager.addLocalMessage(privateMessage) } just runs
|
every { messagingManager.addLocalMessage(privateMessage) } just runs
|
||||||
|
|||||||
Reference in New Issue
Block a user