mirror of https://github.com/procxx/kepka.git
Mark autoplayed voice/video messages as read.
This commit is contained in:
parent
bfe7bf2c11
commit
eb00641dfa
|
@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "media/player/media_player_instance.h"
|
||||
|
||||
#include "data/data_document.h"
|
||||
#include "data/data_session.h"
|
||||
#include "media/media_audio.h"
|
||||
#include "media/media_audio_capture.h"
|
||||
#include "calls/calls_instance.h"
|
||||
|
@ -308,6 +309,9 @@ void Instance::play(const AudioMsgId &audioId) {
|
|||
App::wnd()->controller()->startRoundVideo(item);
|
||||
}
|
||||
}
|
||||
if (document->isVoiceMessage() || document->isVideoMessage()) {
|
||||
document->session()->data().markMediaRead(document);
|
||||
}
|
||||
}
|
||||
|
||||
void Instance::pause(AudioMsgId::Type type) {
|
||||
|
|
Loading…
Reference in New Issue