From 87235641cb14f4f34a3da9dfb59d8dc4656f56d1 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Thu, 4 Nov 2021 16:07:27 +1100 Subject: [PATCH] fixed typos for translations and method name. --- _locales/en/messages.json | 2 +- ts/receiver/queuedJob.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ae849d3d5..dba5ec8dc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -447,5 +447,5 @@ "blockAll": "Block All", "messageRequests": "Message Requests", "requestsSubtitle": "Pending Requests", - "requestsPlaceHolder": "No requests" + "requestsPlaceholder": "No requests" } diff --git a/ts/receiver/queuedJob.ts b/ts/receiver/queuedJob.ts index a1847bd8e..c0a35b5d4 100644 --- a/ts/receiver/queuedJob.ts +++ b/ts/receiver/queuedJob.ts @@ -463,7 +463,7 @@ export async function handleMessageJob( conversationKey: conversation.id, messageModelProps: message.getMessageModelProps(), }); - trotthledAllMessagesAddedDispatch(); + throttledAllMessagesAddedDispatch(); if (message.get('unread')) { await conversation.throttledNotify(message); } @@ -479,7 +479,7 @@ export async function handleMessageJob( } } -const trotthledAllMessagesAddedDispatch = _.throttle(() => { +const throttledAllMessagesAddedDispatch = _.throttle(() => { if (updatesToDispatch.size === 0) { return; }