From 728043b50b0d30aef57d94c50a75831a2eb5bae5 Mon Sep 17 00:00:00 2001 From: Peter <> Date: Wed, 15 May 2019 22:10:24 +0200 Subject: [PATCH] HashtagSearchController: fixed crash --- TelegramUI/HashtagSearchController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TelegramUI/HashtagSearchController.swift b/TelegramUI/HashtagSearchController.swift index 6195ed9e84..0594a1a2a5 100644 --- a/TelegramUI/HashtagSearchController.swift +++ b/TelegramUI/HashtagSearchController.swift @@ -65,7 +65,8 @@ final class HashtagSearchController: TelegramController { }) let previousSearchItems = Atomic<[ChatListSearchEntry]?>(value: nil) - self.transitionDisposable = (foundMessages |> deliverOn(self.queue)).start(next: { [weak self] entries in + self.transitionDisposable = (foundMessages + |> deliverOnMainQueue).start(next: { [weak self] entries in if let strongSelf = self { let previousEntries = previousSearchItems.swap(entries)