Fix 'mute chat' for chats that have never been muted, fixes #144
This commit is contained in:
parent
301f52603a
commit
63ce0f92d2
3 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ PhotoTextsListItem {
|
|||
} else {
|
||||
newNotificationSettings.mute_for = 6666666;
|
||||
}
|
||||
newNotificationSettings.use_default_mute_for = false;
|
||||
tdLibWrapper.setChatNotificationSettings(chat_id, newNotificationSettings);
|
||||
}
|
||||
text: display.notification_settings.mute_for > 0 ? qsTr("Unmute Chat") : qsTr("Mute Chat")
|
||||
|
|
|
@ -212,6 +212,7 @@ Page {
|
|||
} else {
|
||||
newNotificationSettings.mute_for = 6666666;
|
||||
}
|
||||
newNotificationSettings.use_default_mute_for = false;
|
||||
tdLibWrapper.setChatNotificationSettings(chat_id, newNotificationSettings);
|
||||
}
|
||||
text: chatInformation.notification_settings.mute_for > 0 ? qsTr("Unmute Chat") : qsTr("Mute Chat")
|
||||
|
|
|
@ -412,6 +412,7 @@ Page {
|
|||
} else {
|
||||
newNotificationSettings.mute_for = 6666666;
|
||||
}
|
||||
newNotificationSettings.use_default_mute_for = false;
|
||||
tdLibWrapper.setChatNotificationSettings(chatInformation.id, newNotificationSettings);
|
||||
}
|
||||
text: chatInformation.notification_settings.mute_for > 0 ? qsTr("Unmute Chat") : qsTr("Mute Chat")
|
||||
|
|
Loading…
Reference in a new issue