Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Commit d6ff9e0

Browse files
committed
one more change to showing notifications, with the new direct message endpoints
1 parent d4ed602 commit d6ff9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/klinker/android/twitter_l/utils/api_helper/DirectMessageDownload.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ object DirectMessageDownload {
7171
sharedPrefs.edit().putBoolean("refresh_me", true).apply()
7272
sharedPrefs.edit().putBoolean("refresh_me_dm", true).apply()
7373

74-
if (settings.notifications && settings.dmsNot && inserted > 0) {
74+
if (settings.notifications && settings.dmsNot && inserted > 0 && !alwaysSync) {
7575
val currentUnread = sharedPrefs.getInt("dm_unread_$currentAccount", 0)
7676
sharedPrefs.edit().putInt("dm_unread_$currentAccount", inserted + currentUnread).apply()
7777

0 commit comments

Comments
 (0)