mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
TODO
This commit is contained in:
parent
b525259bec
commit
3384a0caa0
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user