mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-22 21:10:14 +01:00
fixed disable notification logic
This commit is contained in:
parent
76820c1a3c
commit
8cbfd1e743
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user