From 2d46f81b2b81d1ba9987ce75a48e84407d63f735 Mon Sep 17 00:00:00 2001 From: CMK Date: Wed, 7 Jul 2021 16:20:07 +0800 Subject: [PATCH] fix: status poll appearance may delay set issue --- Mastodon/Diffiable/Section/PollSection.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mastodon/Diffiable/Section/PollSection.swift b/Mastodon/Diffiable/Section/PollSection.swift index 872cc7aea..79ecd415d 100644 --- a/Mastodon/Diffiable/Section/PollSection.swift +++ b/Mastodon/Diffiable/Section/PollSection.swift @@ -68,7 +68,7 @@ extension PollSection { cell.pollOptionView.checkmarkImageView.isHidden = true case .off: ThemeService.shared.currentTheme - .receive(on: RunLoop.main) + .receive(on: DispatchQueue.main) .sink { [weak cell] theme in guard let cell = cell else { return } cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor @@ -80,7 +80,7 @@ extension PollSection { cell.pollOptionView.checkmarkImageView.isHidden = true case .on: ThemeService.shared.currentTheme - .receive(on: RunLoop.main) + .receive(on: DispatchQueue.main) .sink { [weak cell] theme in guard let cell = cell else { return } cell.pollOptionView.checkmarkBackgroundView.backgroundColor = theme.tertiarySystemBackgroundColor