Fix unused state key when iterating room stickers

This commit is contained in:
Nicolas Werner 2021-07-19 03:29:48 +02:00
parent 9d5ba4f681
commit 56b44a85b5
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -3432,7 +3432,7 @@ Cache::getImagePacks(const std::string &room_id, bool stickers)
(void)d; (void)d;
if (auto pack = if (auto pack =
getStateEvent<mtx::events::msc2545::ImagePack>( getStateEvent<mtx::events::msc2545::ImagePack>(
txn, room_id2)) txn, room_id2, state_id))
addPack(pack->content); addPack(pack->content);
} }
} }