#1076 - Video playback support

This commit is contained in:
Moez Bhatti
2018-06-06 15:52:19 -04:00
parent d6fa04f56d
commit b2b4e140e2
12 changed files with 102 additions and 25 deletions
@@ -47,8 +47,7 @@ class GalleryViewModel @Inject constructor(
init {
disposables += partIdFlowable
.mapNotNull { partId -> messageRepo.getPart(partId) }
.mapNotNull { part -> part.getUri() }
.subscribe { uri -> newState { copy(imageUri = uri) } }
.subscribe { part -> newState { copy(uri = part.getUri(), type = part.type) } }
disposables += partIdFlowable
.mapNotNull { partId -> messageRepo.getMessageForPart(partId) }