This commit is contained in:
Maxime Naturel 2022-02-22 17:41:23 +01:00
parent b525259bec
commit 3384a0caa0
2 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
val msgType = messageContent?.msgType
return arrayListOf<EventSharedAction>().apply {
// TODO need to check all possible items and confirm order
when {
timelineEvent.root.sendState.hasFailed() -> {
addActionsForFailedState(timelineEvent, actionPermissions, messageContent, msgType)

View File

@ -249,7 +249,10 @@ class VectorAttachmentViewerActivity : AttachmentViewerActivity(), BaseAttachmen
handle(AttachmentCommands.SeekTo(percent))
}
// TODO add save feature for image => check it works for video as well,
// check if it is already possible to save from menu with long press on video
override fun onShareTapped() {
// TODO move the retrieve of the file into ViewModel and use a ViewEvent to call shareMedia
lifecycleScope.launch(Dispatchers.IO) {
val file = currentSourceProvider?.getFileForSharing(currentPosition) ?: return@launch