mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Edit paid messages exceptions.
This commit is contained in:
@@ -50,6 +50,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "history/view/history_view_element.h"
|
||||
#include "history/history_item.h"
|
||||
#include "storage/file_download.h"
|
||||
#include "storage/storage_account.h"
|
||||
#include "storage/storage_facade.h"
|
||||
#include "storage/storage_shared_media.h"
|
||||
|
||||
@@ -341,6 +342,17 @@ void PeerData::invalidateEmptyUserpic() {
|
||||
_userpicEmpty = nullptr;
|
||||
}
|
||||
|
||||
void PeerData::checkTrustedPayForMessage() {
|
||||
if (!_checkedTrustedPayForMessage
|
||||
&& !starsPerMessage()
|
||||
&& session().local().peerTrustedPayForMessageRead()) {
|
||||
_checkedTrustedPayForMessage = 1;
|
||||
if (session().local().hasPeerTrustedPayForMessageEntry(id)) {
|
||||
session().local().clearPeerTrustedPayForMessage(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ClickHandlerPtr PeerData::createOpenLink() {
|
||||
return std::make_shared<PeerClickHandler>(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user