Change send method for text stories to cover link previews.
This commit is contained in:
parent
f7b9942f11
commit
f57e06677b
1 changed files with 11 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue