From 66927f206d45bfe6b114fdf607cbc8a86cce0bbc Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 19 May 2017 16:29:46 -0400 Subject: [PATCH] Cache display names for accounts. // FREEBIE --- src/Messages/TSMessagesManager.m | 4 ---- src/Protocols/NotificationsProtocol.h | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Messages/TSMessagesManager.m b/src/Messages/TSMessagesManager.m index 7efe8b9b8..a77af5778 100644 --- a/src/Messages/TSMessagesManager.m +++ b/src/Messages/TSMessagesManager.m @@ -955,11 +955,7 @@ NS_ASSUME_NONNULL_BEGIN // Update thread preview in inbox [thread touch]; - // TODO Delay notification by 100ms? - // It's pretty annoying when you're phone keeps buzzing while you're having a conversation on Desktop. - NSString *name = [thread name]; [[TextSecureKitEnv sharedEnv].notificationsManager notifyUserForIncomingMessage:incomingMessage - from:name inThread:thread contactsManager:self.contactsManager]; } diff --git a/src/Protocols/NotificationsProtocol.h b/src/Protocols/NotificationsProtocol.h index 6fe759479..61fda0a25 100644 --- a/src/Protocols/NotificationsProtocol.h +++ b/src/Protocols/NotificationsProtocol.h @@ -1,5 +1,6 @@ -// Created by Frederic Jacobs on 05/12/15. -// Copyright © 2015 Open Whisper Systems. All rights reserved. +// +// Copyright (c) 2017 Open Whisper Systems. All rights reserved. +// @class TSErrorMessage; @class TSIncomingMessage; @@ -9,7 +10,6 @@ @protocol NotificationsProtocol - (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage - from:(NSString *)name inThread:(TSThread *)thread contactsManager:(id)contactsManager;