2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Play streaming video in mediaview.

This commit is contained in:
John Preston
2019-02-27 15:36:19 +04:00
parent 44df10d6cb
commit f1e0cd6c1d
43 changed files with 920 additions and 900 deletions

View File

@@ -422,14 +422,11 @@ namespace App {
HistoryItem *histItemById(ChannelId channelId, MsgId itemId) {
if (!itemId) return nullptr;
auto data = fetchMsgsData(channelId, false);
const auto data = fetchMsgsData(channelId, false);
if (!data) return nullptr;
auto i = data->constFind(itemId);
if (i != data->cend()) {
return i.value();
}
return nullptr;
const auto i = data->constFind(itemId);
return (i != data->cend()) ? i.value() : nullptr;
}
HistoryItem *histItemById(const ChannelData *channel, MsgId itemId) {