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

This reverts commit 0f9923e2619ec21eec3f2c4a97a3cc0eb4ab5e29.
This commit is contained in:
Alex Hart
2022-05-02 09:16:36 -03:00
committed by Greyson Parrelli
parent f1cb416bda
commit 6563ea970f

View File

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