Revert "Change send method for text stories to cover link previews."

This reverts commit 0f9923e2619ec21eec3f2c4a97a3cc0eb4ab5e29.
fork-5.53.8
Alex Hart 2022-05-02 09:16:36 -03:00 zatwierdzone przez Greyson Parrelli
rodzic f1cb416bda
commit 6563ea970f
1 zmienionych plików z 1 dodań i 11 usunięć

Wyświetl plik

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