From e80db815881498ed12a3fd3f2b85a76a78b3e50e Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Wed, 25 Oct 2023 13:43:22 +0100 Subject: [PATCH] msglist [nfc]: Make _MessageSequence.findItemWithMessageId non-private --- lib/model/message_list.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/model/message_list.dart b/lib/model/message_list.dart index 1b93fc99c7..ad10acfec2 100644 --- a/lib/model/message_list.dart +++ b/lib/model/message_list.dart @@ -106,7 +106,7 @@ mixin _MessageSequence { (message, messageId) => message.id.compareTo(messageId)); } - int _findItemWithMessageId(int messageId) { + int findItemWithMessageId(int messageId) { return binarySearchByKey(items, messageId, _compareItemToMessageId); } @@ -129,7 +129,7 @@ mixin _MessageSequence { final content = parseContent(message.content); contents[index] = content; - final itemIndex = _findItemWithMessageId(message.id); + final itemIndex = findItemWithMessageId(message.id); assert(itemIndex > -1 && items[itemIndex] is MessageListMessageItem && identical((items[itemIndex] as MessageListMessageItem).message, message));