mirror of
https://github.com/NicolasConstant/sengi
synced 2025-02-08 07:58:47 +01:00
clean up
This commit is contained in:
parent
fb4a274956
commit
52f5aa69df
@ -35,8 +35,7 @@ export class EmojiPickerComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
let currentAccount = this.toolsService.getSelectedAccounts()[0];
|
||||
this.toolsService.getCustomEmojis(currentAccount)
|
||||
.then(emojis => {
|
||||
console.warn(emojis);
|
||||
.then(emojis => {
|
||||
this.customEmojis = emojis.map(x => this.convertEmoji(x));
|
||||
})
|
||||
.catch(err => {
|
||||
|
@ -147,8 +147,6 @@ export class LeftSideBarComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
|
||||
this.scheduledSub = this.scheduledStatusService.scheduledStatuses.subscribe((notifications: ScheduledStatusNotification[]) => {
|
||||
console.warn(notifications);
|
||||
|
||||
let statuses = [];
|
||||
notifications.forEach(n => {
|
||||
n.statuses.forEach(x => {
|
||||
@ -157,7 +155,6 @@ export class LeftSideBarComponent implements OnInit, OnDestroy {
|
||||
})
|
||||
|
||||
this.hasScheduledStatuses = statuses.length > 0;
|
||||
console.warn(`hasScheduledStatuses ${this.hasScheduledStatuses}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,6 @@ export class StatusUserContextMenuComponent implements OnInit, OnDestroy {
|
||||
|
||||
this.getStatus(selectedAccount)
|
||||
.then((status: Status) => {
|
||||
console.warn(status);
|
||||
return this.mastodonService.pinOnProfile(selectedAccount, status.id)
|
||||
})
|
||||
.then((status: Status) => {
|
||||
|
@ -118,8 +118,7 @@ export class StreamNotificationsComponent implements OnInit, OnDestroy {
|
||||
loadNotifications(): any {
|
||||
this.account = this.toolsService.getAccountById(this.streamElement.accountId);
|
||||
|
||||
this.mentionsSubscription = this.userNotificationService.userNotifications.subscribe((userNotifications: UserNotification[]) => {
|
||||
console.warn(userNotifications);
|
||||
this.mentionsSubscription = this.userNotificationService.userNotifications.subscribe((userNotifications: UserNotification[]) => {
|
||||
this.loadMentions(userNotifications);
|
||||
});
|
||||
|
||||
|
@ -84,9 +84,6 @@ export class StreamOverlayComponent implements OnInit, OnDestroy {
|
||||
this.loadedElements[newIndex].show();
|
||||
this.visibleElementIndex = newIndex;
|
||||
|
||||
console.warn(`visibleElementIndex ${this.visibleElementIndex}`);
|
||||
console.warn(`this.loadedElements ${this.loadedElements.length}`);
|
||||
|
||||
this.hasPreviousElements = true;
|
||||
this.hasNextElements = this.visibleElementIndex < this.loadedElements.length - 1;
|
||||
|
||||
@ -104,9 +101,6 @@ export class StreamOverlayComponent implements OnInit, OnDestroy {
|
||||
this.loadedElements[newIndex].show();
|
||||
this.visibleElementIndex = newIndex;
|
||||
|
||||
console.warn(`visibleElementIndex ${this.visibleElementIndex}`);
|
||||
console.warn(`this.loadedElements ${this.loadedElements.length}`);
|
||||
|
||||
this.hasPreviousElements = this.visibleElementIndex > 0;
|
||||
this.hasNextElements = true;
|
||||
|
||||
|
@ -26,8 +26,6 @@ export class NotificationService {
|
||||
let message = 'Oops, Unknown Error';
|
||||
let code: number;
|
||||
|
||||
console.warn(err);
|
||||
|
||||
try {
|
||||
code = err.status;
|
||||
message = err.error.error; //Mastodon
|
||||
|
Loading…
x
Reference in New Issue
Block a user