diff --git a/app/js/controllers.js b/app/js/controllers.js index 874e5ab1..ea0aa30b 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -871,6 +871,13 @@ angular.module('myApp.controllers', []) $scope.photo = AppPhotosManager.wrapForFull($scope.photoID); $scope.nav = {}; + if (!$scope.messageID) { + $scope.nav.next = function () { + $modalInstance.close(); + } + return; + } + var peerID = AppMessagesManager.getMessagePeer(AppMessagesManager.getMessage($scope.messageID)), inputPeer = AppPeersManager.getInputPeerByID(peerID), inputQuery = '', @@ -996,6 +1003,7 @@ angular.module('myApp.controllers', []) $scope.progress = {enabled: false}; $scope.player = {}; + $scope.forward = function () { var messageID = $scope.messageID; PeersSelectService.selectPeer().then(function (peerString) { diff --git a/app/partials/photo_modal.html b/app/partials/photo_modal.html index 27cae42e..6fb0061e 100644 --- a/app/partials/photo_modal.html +++ b/app/partials/photo_modal.html @@ -4,7 +4,7 @@
-
+
Forward Delete
diff --git a/app/partials/video_modal.html b/app/partials/video_modal.html index 280f23a4..07205626 100644 --- a/app/partials/video_modal.html +++ b/app/partials/video_modal.html @@ -4,7 +4,7 @@
-
+