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

Strictly match message / media types.

This commit is contained in:
John Preston
2018-12-17 12:16:06 +04:00
parent 6d9f40db30
commit eb7201a55b
13 changed files with 292 additions and 303 deletions

View File

@@ -154,7 +154,7 @@ void Histories::remove(const PeerId &peer) {
HistoryItem *Histories::addNewMessage(
const MTPMessage &msg,
NewMessageType type) {
auto peer = peerFromMessage(msg);
auto peer = PeerFromMessage(msg);
if (!peer) return nullptr;
auto result = App::history(peer)->addNewMessage(msg, type);
@@ -750,7 +750,7 @@ bool History::updateSendActionNeedsAnimating(TimeMs ms, bool force) {
HistoryItem *History::createItem(
const MTPMessage &message,
bool detachExistingItem) {
const auto messageId = idFromMessage(message);
const auto messageId = IdFromMessage(message);
if (!messageId) {
return nullptr;
}