1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-02-08 07:58:47 +01:00
This commit is contained in:
Nicolas Constant 2019-11-20 23:12:12 -05:00
parent fb4a274956
commit 52f5aa69df
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
6 changed files with 2 additions and 16 deletions

View File

@ -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 => {

View File

@ -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}`);
});
}

View File

@ -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) => {

View File

@ -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);
});

View File

@ -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;

View File

@ -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