Added audio filter
This commit is contained in:
parent
4179b259ab
commit
07c90744b2
@ -480,6 +480,7 @@ angular.module('myApp.controllers', [])
|
||||
photos: 'inputMessagesFilterPhotos',
|
||||
video: 'inputMessagesFilterVideo',
|
||||
documents: 'inputMessagesFilterDocument',
|
||||
audio: 'inputMessagesFilterAudio'
|
||||
},
|
||||
jump = 0;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -224,6 +224,7 @@ inputMessagesFilterPhotos#9609a51c = MessagesFilter;
|
||||
inputMessagesFilterVideo#9fc00e65 = MessagesFilter;
|
||||
inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter;
|
||||
inputMessagesFilterDocument#9eddf188 = MessagesFilter;
|
||||
inputMessagesFilterAudio#cfc87522 = MessagesFilter;
|
||||
|
||||
updateNewMessage#13abdb3 message:Message pts:int = Update;
|
||||
updateMessageID#4e90bfd6 id:int random_id:long = Update;
|
||||
|
@ -926,6 +926,10 @@ angular.module('myApp.services', [])
|
||||
case 'inputMessagesFilterDocument':
|
||||
neededContents['messageMediaDocument'] = true;
|
||||
break;
|
||||
|
||||
case 'inputMessagesFilterAudio':
|
||||
neededContents['messageMediaAudio'] = true;
|
||||
break;
|
||||
}
|
||||
for (i = 0; i < historyStorage.history.length; i++) {
|
||||
message = messagesStorage[historyStorage.history[i]];
|
||||
|
@ -83,6 +83,7 @@
|
||||
<li><a ng-click="toggleMedia('photos')">Photos</a></li>
|
||||
<li><a ng-click="toggleMedia('video')">Videos</a></li>
|
||||
<li><a ng-click="toggleMedia('documents')">Documents</a></li>
|
||||
<li><a ng-click="toggleMedia('audio')">Voice messages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a ng-show="mediaType !== false" class="im_history_panel_return_link pull-right" ng-click="toggleMedia()">
|
||||
@ -94,6 +95,7 @@
|
||||
<h4 ng-switch-when="photos">Photos</h4>
|
||||
<h4 ng-switch-when="video">Videos</h4>
|
||||
<h4 ng-switch-when="documents">Documents</h4>
|
||||
<h4 ng-switch-when="audio">Voice messages</h4>
|
||||
|
||||
<h4 ng-switch-default ng-switch="historyPeer.id > 0" ng-click="showPeerInfo()">
|
||||
<div ng-switch-when="true">
|
||||
|
Loading…
Reference in New Issue
Block a user