Change send method for text stories to cover link previews.

This commit is contained in:
Alex Hart 2022-04-29 15:44:42 -03:00 committed by Greyson Parrelli
parent f7b9942f11
commit f57e06677b

View file

@ -52,7 +52,17 @@ object Stories {
@WorkerThread
fun sendTextStories(messages: List<OutgoingSecureMediaMessage>): Completable {
return Completable.create { emitter ->
MessageSender.sendMediaBroadcast(ApplicationDependencies.getApplication(), messages, listOf(), listOf())
messages.forEach { outgoingSecureMediaMessage ->
MessageSender.send(
ApplicationDependencies.getApplication(),
outgoingSecureMediaMessage,
-1L,
false,
null,
null
)
}
emitter.onComplete()
}
}