Skip to content
Snippets Groups Projects
Verified Commit 31962040 authored by akwizgran's avatar akwizgran
Browse files

Send legacy private messages from headless app.

parent 2bae6391
No related branches found
No related tags found
1 merge request!1133Add support for image attachments to messaging client
......@@ -73,7 +73,7 @@ constructor(
val group = messagingManager.getContactGroup(contact)
val now = clock.currentTimeMillis()
val m = privateMessageFactory.createPrivateMessage(group.id, now, text, emptyList())
val m = privateMessageFactory.createLegacyPrivateMessage(group.id, now, text)
messagingManager.addLocalMessage(m)
return ctx.json(m.output(contact.id, text))
......
......@@ -115,11 +115,10 @@ internal class MessagingControllerImplTest : ControllerTest() {
every { messagingManager.getContactGroup(contact) } returns group
every { clock.currentTimeMillis() } returns timestamp
every {
privateMessageFactory.createPrivateMessage(
privateMessageFactory.createLegacyPrivateMessage(
group.id,
timestamp,
text,
emptyList()
text
)
} returns privateMessage
every { messagingManager.addLocalMessage(privateMessage) } just runs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment