mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
[headless] don't use putAll for a single field
This commit is contained in:
@@ -23,13 +23,10 @@ internal fun ConversationMessageHeader.output(contactId: ContactId, text: String
|
|||||||
return dict
|
return dict
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun PrivateMessageHeader.output(contactId: ContactId, text: String?): JsonDict {
|
internal fun PrivateMessageHeader.output(contactId: ContactId, text: String?) =
|
||||||
val dict = (this as ConversationMessageHeader).output(contactId, text)
|
(this as ConversationMessageHeader).output(contactId, text).apply {
|
||||||
dict.putAll(
|
put("type", "PrivateMessage")
|
||||||
"type" to "PrivateMessage"
|
}
|
||||||
)
|
|
||||||
return dict
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use only for outgoing messages that were just sent
|
* Use only for outgoing messages that were just sent
|
||||||
|
|||||||
Reference in New Issue
Block a user