kopia lustrzana https://github.com/ryukoposting/Signal-Android
Change send method for text stories to cover link previews.
rodzic
f7b9942f11
commit
f57e06677b
|
@ -52,7 +52,17 @@ object Stories {
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
fun sendTextStories(messages: List<OutgoingSecureMediaMessage>): Completable {
|
fun sendTextStories(messages: List<OutgoingSecureMediaMessage>): Completable {
|
||||||
return Completable.create { emitter ->
|
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()
|
emitter.onComplete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue