mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 08:47:52 +00:00
feat: message details
feat: rework `Hide` feat: context menu configuration
This commit is contained in:
@@ -78,6 +78,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ayu/ayu_settings.h"
|
||||
#include "ayu/database/ayu_database.h"
|
||||
#include "ayu/messages/ayu_messages_controller.h"
|
||||
#include "ayu/ayu_state.h"
|
||||
|
||||
|
||||
namespace Data {
|
||||
@@ -2353,6 +2354,11 @@ void Session::registerMessage(not_null<HistoryItem*> item) {
|
||||
const auto peerId = item->history()->peer->id;
|
||||
const auto list = messagesListForInsert(peerId);
|
||||
const auto itemId = item->id;
|
||||
|
||||
if (AyuState::isHidden(item)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto i = list->find(itemId);
|
||||
if (i != list->end()) {
|
||||
LOG(("App Error: Trying to re-registerMessage()."));
|
||||
|
||||
Reference in New Issue
Block a user