mirror of https://github.com/procxx/kepka.git
Fix duplicated entries in calls log box.
Notify about new call service messages only for unread messages.
This commit is contained in:
parent
397e1dde78
commit
ab62b1591f
|
@ -35,6 +35,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||||
#include "observer_peer.h"
|
#include "observer_peer.h"
|
||||||
#include "auth_session.h"
|
#include "auth_session.h"
|
||||||
#include "window/notifications_manager.h"
|
#include "window/notifications_manager.h"
|
||||||
|
#include "calls/calls_instance.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -1008,6 +1009,10 @@ HistoryItem *History::createItem(const MTPMessage &msg, bool applyServiceAction,
|
||||||
if (App::main()) emit App::main()->peerUpdated(result->history()->peer);
|
if (App::main()) emit App::main()->peerUpdated(result->history()->peer);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case mtpc_messageActionPhoneCall: {
|
||||||
|
Calls::Current().newServiceMessage().notify(result->fullId());
|
||||||
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
|
@ -3075,8 +3075,6 @@ HistoryCall::HistoryCall(gsl::not_null<HistoryItem*> parent, const MTPDmessageAc
|
||||||
_duration = 0;
|
_duration = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Calls::Current().newServiceMessage().notify(_parent->fullId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HistoryCall::FinishReason HistoryCall::GetReason(const MTPDmessageActionPhoneCall &call) {
|
HistoryCall::FinishReason HistoryCall::GetReason(const MTPDmessageActionPhoneCall &call) {
|
||||||
|
|
Loading…
Reference in New Issue