mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
@@ -1590,10 +1590,8 @@ int32 HistoryDocument::addToOverview(AddToOverviewMethod method) {
|
|||||||
if (_data->voice()) {
|
if (_data->voice()) {
|
||||||
result |= addToOneOverview(OverviewVoiceFiles, method);
|
result |= addToOneOverview(OverviewVoiceFiles, method);
|
||||||
result |= addToOneOverview(OverviewRoundVoiceFiles, method);
|
result |= addToOneOverview(OverviewRoundVoiceFiles, method);
|
||||||
} else if (_data->song()) {
|
} else if (_data->isMusic()) {
|
||||||
if (_data->isMusic()) {
|
result |= addToOneOverview(OverviewMusicFiles, method);
|
||||||
result |= addToOneOverview(OverviewMusicFiles, method);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
result |= addToOneOverview(OverviewFiles, method);
|
result |= addToOneOverview(OverviewFiles, method);
|
||||||
}
|
}
|
||||||
@@ -1604,10 +1602,8 @@ void HistoryDocument::eraseFromOverview() {
|
|||||||
if (_data->voice()) {
|
if (_data->voice()) {
|
||||||
eraseFromOneOverview(OverviewVoiceFiles);
|
eraseFromOneOverview(OverviewVoiceFiles);
|
||||||
eraseFromOneOverview(OverviewRoundVoiceFiles);
|
eraseFromOneOverview(OverviewRoundVoiceFiles);
|
||||||
} else if (_data->song()) {
|
} else if (_data->isMusic()) {
|
||||||
if (_data->isMusic()) {
|
eraseFromOneOverview(OverviewMusicFiles);
|
||||||
eraseFromOneOverview(OverviewMusicFiles);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
eraseFromOneOverview(OverviewFiles);
|
eraseFromOneOverview(OverviewFiles);
|
||||||
}
|
}
|
||||||
@@ -1619,11 +1615,8 @@ Storage::SharedMediaTypesMask HistoryDocument::sharedMediaTypes() const {
|
|||||||
return Storage::SharedMediaTypesMask{}
|
return Storage::SharedMediaTypesMask{}
|
||||||
.added(Type::VoiceFile)
|
.added(Type::VoiceFile)
|
||||||
.added(Type::RoundVoiceFile);
|
.added(Type::RoundVoiceFile);
|
||||||
} else if (_data->song()) {
|
} else if (_data->isMusic()) {
|
||||||
if (_data->isMusic()) {
|
return Type::MusicFile;
|
||||||
return Type::MusicFile;
|
|
||||||
}
|
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
return Type::File;
|
return Type::File;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user