From 563dff64ae4e1b0248367f3bb1010d037e1c1b00 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Wed, 30 Jun 2021 13:12:25 +1000 Subject: [PATCH] yarn linting and formatting, --- ts/components/session/menu/Menu.tsx | 3 +-- ts/models/conversation.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/components/session/menu/Menu.tsx b/ts/components/session/menu/Menu.tsx index 871f1987b..1fc0102d4 100644 --- a/ts/components/session/menu/Menu.tsx +++ b/ts/components/session/menu/Menu.tsx @@ -4,7 +4,6 @@ import { NotificationForConvoOption, TimerOption } from '../../conversation/Conv import { Item, Submenu } from 'react-contexify'; import { ConversationNotificationSettingType } from '../../../models/conversation'; import { useDispatch } from 'react-redux'; -import { actions as conversationActions } from '../../../state/ducks/conversations'; import { changeNickNameModal, updateConfirmModal } from '../../../state/ducks/modalDialog'; import { getConversationController } from '../../../session/conversations'; import { @@ -131,7 +130,7 @@ export const MenuItemPinConversation = ( ): JSX.Element | null => { const { conversationId } = props; const conversation = getConversationController().get(conversationId); - let isPinned = conversation.getIsPinned(); + const isPinned = conversation.getIsPinned(); const togglePinConversation = async () => { await conversation.setIsPinned(!isPinned); diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 53dd24d77..848cfbc3a 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -1100,7 +1100,6 @@ export class ConversationModel extends Backbone.Model { isPinned: value, }); await this.commit(); - console.log(this); } }