File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import * as moment from 'moment';
77import * as _ from 'lodash' ;
88import { MessagesOptionsComponent } from './messages-options' ;
99import { Subscription , Observable , Subscriber } from 'rxjs' ;
10+ import { MessagesAttachmentsComponent } from './messages-attachments' ;
1011
1112@Component ( {
1213 selector : 'messages-page' ,
@@ -211,4 +212,18 @@ export class MessagesPage implements OnInit, OnDestroy {
211212 this . message = '' ;
212213 } ) ;
213214 }
215+
216+ showAttachments ( ) : void {
217+ const popover = this . popoverCtrl . create ( MessagesAttachmentsComponent , {
218+ chat : this . selectedChat
219+ } , {
220+ cssClass : 'attachments-popover'
221+ } ) ;
222+
223+ popover . onDidDismiss ( ( params ) => {
224+ // TODO: Handle result
225+ } ) ;
226+
227+ popover . present ( ) ;
228+ }
214229}
You can’t perform that action at this time.
0 commit comments