2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Highlight all mentions when marking them read.

This commit is contained in:
John Preston
2017-08-25 18:17:46 +03:00
parent 20efa47126
commit 5a20014b1a
11 changed files with 150 additions and 86 deletions

View File

@@ -1026,7 +1026,7 @@ void MediaView::onCopy() {
}
void MediaView::showPhoto(PhotoData *photo, HistoryItem *context) {
_history = context ? context->history() : nullptr;
_history = context ? context->history().get() : nullptr;
_migrated = nullptr;
if (_history) {
if (_history->peer->migrateFrom()) {
@@ -1144,7 +1144,7 @@ void MediaView::showPhoto(PhotoData *photo, PeerData *context) {
void MediaView::showDocument(DocumentData *doc, HistoryItem *context) {
_photo = 0;
_history = context ? context->history() : nullptr;
_history = context ? context->history().get() : nullptr;
_migrated = nullptr;
if (_history) {
if (_history->peer->migrateFrom()) {