refactor: simplify uses of getMessageSnapshot (#6607)

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2025-11-29 12:40:06 +01:00
committed by GitHub
parent 6756374b5b
commit 041674b7f6
9 changed files with 31 additions and 28 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ std::vector<MessagePtr> SearchPopup::buildSnapshot()
ChannelView &sharedView = channel.get();
const FilterSetPtr filterSet = sharedView.getFilterSet();
const std::vector<MessagePtr> &snapshot =
std::vector<MessagePtr> snapshot =
sharedView.channel()->getMessageSnapshot();
for (const auto &message : snapshot)