Handle no uri to share case.
This commit is contained in:
parent
64cb42af75
commit
767e1b4259
1 changed files with 19 additions and 15 deletions
|
|
@ -75,6 +75,9 @@ class SharePresenter @AssistedInject constructor(
|
|||
val result = shareIntentHandler.handleIncomingShareIntent(
|
||||
intent,
|
||||
onUris = { filesToShare ->
|
||||
if (filesToShare.isEmpty()) {
|
||||
false
|
||||
} else {
|
||||
roomIds
|
||||
.map { roomId ->
|
||||
val room = matrixClient.getRoom(roomId) ?: return@map false
|
||||
|
|
@ -90,6 +93,7 @@ class SharePresenter @AssistedInject constructor(
|
|||
.all { it }
|
||||
}
|
||||
.all { it }
|
||||
}
|
||||
},
|
||||
onPlainText = { text ->
|
||||
roomIds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue