2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

pin/unpin messages in supergroups, local hide for pinned messages

This commit is contained in:
John Preston
2016-03-10 13:15:21 +03:00
parent 420e82d421
commit efa5fc443a
24 changed files with 667 additions and 183 deletions

View File

@@ -1510,7 +1510,6 @@ void MainWidget::changingMsgId(HistoryItem *row, MsgId newId) {
}
void MainWidget::itemRemoved(HistoryItem *item) {
api()->itemRemoved(item);
dialogs.itemRemoved(item);
if (history.peer() == item->history()->peer || (history.peer() && history.peer() == item->history()->peer->migrateTo())) {
history.itemRemoved(item);
@@ -2056,8 +2055,8 @@ ApiWrap *MainWidget::api() {
return _api;
}
void MainWidget::updateDependencyItem() {
history.updateReplyEditTexts(true);
void MainWidget::messageDataReceived(ChannelData *channel, MsgId msgId) {
history.messageDataReceived(channel, msgId);
}
void MainWidget::updateBotKeyboard(History *h) {