mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Add initial support for backup and restore of message and media to staging.
Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.thoughtcrime.securesms.releasechannel
|
||||
|
||||
import org.thoughtcrime.securesms.attachments.Cdn
|
||||
import org.thoughtcrime.securesms.attachments.PointerAttachment
|
||||
import org.thoughtcrime.securesms.database.MessageTable
|
||||
import org.thoughtcrime.securesms.database.MessageType
|
||||
@@ -20,8 +21,6 @@ import java.util.UUID
|
||||
*/
|
||||
object ReleaseChannel {
|
||||
|
||||
const val CDN_NUMBER = -1
|
||||
|
||||
fun insertReleaseChannelMessage(
|
||||
recipientId: RecipientId,
|
||||
body: String,
|
||||
@@ -36,8 +35,8 @@ object ReleaseChannel {
|
||||
): MessageTable.InsertResult? {
|
||||
val attachments: Optional<List<SignalServiceAttachment>> = if (media != null) {
|
||||
val attachment = SignalServiceAttachmentPointer(
|
||||
CDN_NUMBER,
|
||||
SignalServiceAttachmentRemoteId.from(""),
|
||||
Cdn.S3.cdnNumber,
|
||||
SignalServiceAttachmentRemoteId.S3,
|
||||
mediaType,
|
||||
null,
|
||||
Optional.empty(),
|
||||
|
||||
Reference in New Issue
Block a user