clean up
This commit is contained in:
parent
82e86039b4
commit
438867e49a
|
@ -883,7 +883,6 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
this.overlayRef = this.overlay.create(config);
|
this.overlayRef = this.overlay.create(config);
|
||||||
// this.overlayRef.backdropClick().subscribe(() => {
|
// this.overlayRef.backdropClick().subscribe(() => {
|
||||||
// console.warn('wut?');
|
|
||||||
// this.overlayRef.dispose();
|
// this.overlayRef.dispose();
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,6 @@ export class MentionsComponent extends TimelineBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getNextStatuses(): Promise<Status[]> {
|
protected getNextStatuses(): Promise<Status[]> {
|
||||||
console.warn('MENTIONS get next status');
|
|
||||||
return this.mastodonService.getNotifications(this.account, ['follow', 'favourite', 'reblog', 'poll', 'move'], this.lastId)
|
return this.mastodonService.getNotifications(this.account, ['follow', 'favourite', 'reblog', 'poll', 'move'], this.lastId)
|
||||||
.then((result: Notification[]) => {
|
.then((result: Notification[]) => {
|
||||||
const statuses = result.map(x => x.status);
|
const statuses = result.map(x => x.status);
|
||||||
|
|
|
@ -66,7 +66,6 @@ export class MediaViewerComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
private escapeHotkey = new Hotkey('escape', (event: KeyboardEvent): boolean => {
|
private escapeHotkey = new Hotkey('escape', (event: KeyboardEvent): boolean => {
|
||||||
console.warn('CLOSE');
|
|
||||||
this.close();
|
this.close();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
@ -128,8 +128,6 @@ export class StreamNotificationsComponent extends BrowseBase {
|
||||||
|
|
||||||
this.mastodonService.getNotifications(this.account, null, null, null, 10)
|
this.mastodonService.getNotifications(this.account, null, null, null, 10)
|
||||||
.then((notifications: Notification[]) => {
|
.then((notifications: Notification[]) => {
|
||||||
console.warn(notifications);
|
|
||||||
|
|
||||||
this.isNotificationsLoading = false;
|
this.isNotificationsLoading = false;
|
||||||
|
|
||||||
this.notifications = notifications.map(x => {
|
this.notifications = notifications.map(x => {
|
||||||
|
|
|
@ -96,7 +96,6 @@ export class UserFollowsComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((result: FollowingResult) => {
|
.then((result: FollowingResult) => {
|
||||||
console.warn(result);
|
|
||||||
this.maxId = result.maxId;
|
this.maxId = result.maxId;
|
||||||
this.accounts = result.follows;
|
this.accounts = result.follows;
|
||||||
})
|
})
|
||||||
|
|
|
@ -16,8 +16,6 @@ export class StreamingService {
|
||||||
private readonly mastodonService: MastodonWrapperService) { }
|
private readonly mastodonService: MastodonWrapperService) { }
|
||||||
|
|
||||||
getStreaming(accountInfo: AccountInfo, stream: StreamElement, since_id: string = null): StreamingWrapper {
|
getStreaming(accountInfo: AccountInfo, stream: StreamElement, since_id: string = null): StreamingWrapper {
|
||||||
|
|
||||||
//console.warn('EventSourceStreaminWrapper');
|
|
||||||
//new EventSourceStreaminWrapper(accountInfo, stream);
|
//new EventSourceStreaminWrapper(accountInfo, stream);
|
||||||
|
|
||||||
return new StreamingWrapper(this.mastodonService, accountInfo, stream, this.nbStatusPerIteration);
|
return new StreamingWrapper(this.mastodonService, accountInfo, stream, this.nbStatusPerIteration);
|
||||||
|
|
Loading…
Reference in New Issue