kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix preupload in new Media Send flow.
rodzic
8e8def8b03
commit
fd3e88707c
|
@ -142,7 +142,7 @@ class MediaSelectionRepository(context: Context) {
|
|||
}
|
||||
|
||||
fun isLocalSelfSend(recipient: Recipient?, isSms: Boolean): Boolean {
|
||||
return !MessageSender.isLocalSelfSend(context, recipient, isSms)
|
||||
return MessageSender.isLocalSelfSend(context, recipient, isSms)
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
|
|
@ -68,7 +68,12 @@ class MediaSelectionViewModel(
|
|||
init {
|
||||
val recipientId = destination.getRecipientId()
|
||||
if (recipientId != null) {
|
||||
store.update(Recipient.live(recipientId).liveData) { r, s -> s.copy(recipient = r) }
|
||||
store.update(Recipient.live(recipientId).liveData) { r, s ->
|
||||
s.copy(
|
||||
recipient = r,
|
||||
isPreUploadEnabled = shouldPreUpload(s.isMeteredConnection, s.transportOption.isSms, r)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (initialMedia.isNotEmpty()) {
|
||||
|
|
Ładowanie…
Reference in New Issue