fixed disable notification logic

This commit is contained in:
Mariotaku Lee 2017-02-25 22:12:59 +08:00
parent 76820c1a3c
commit 8cbfd1e743
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ class SetConversationNotificationDisabledTask(
AccountType.TWITTER -> {
if (account.isOfficial(context)) {
val response = if (notificationDisabled) {
microBlog.enableDmConversations(conversationId);
microBlog.disableDmConversations(conversationId)
} else {
microBlog.disableDmConversations(conversationId);
microBlog.enableDmConversations(conversationId)
}
val conversation = MarkMessageReadTask.findConversation(context, accountKey,
conversationId) ?: return GetMessagesTask.DatabaseUpdateData(emptyList(), emptyList())