зеркало из https://github.com/nextcloud/desktop.git
Remove unneeded check for DnD status when showing desktop talk notification
The server will not deliver it anyway Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
d917e5587c
Коммит
f352123af2
|
@ -184,12 +184,7 @@ void User::showDesktopTalkNotification(const Activity &activity)
|
|||
{
|
||||
const auto notificationId = activity._id;
|
||||
|
||||
const ConfigFile cfg;
|
||||
const auto userStatus = _account->account()->userStatusConnector()->userStatus().state();
|
||||
if (!canShowNotification(notificationId) ||
|
||||
userStatus == OCC::UserStatus::OnlineStatus::DoNotDisturb ||
|
||||
!cfg.showChatNotifications()) {
|
||||
|
||||
if (!canShowNotification(notificationId) || !ConfigFile().showChatNotifications()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче