From 74d3e1ad7d79a4d461d6dd8ddb18f0f35d7e0e2a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 17 Mar 2021 14:28:27 -0400 Subject: [PATCH] literally 4f6039b, part 2 --- .../instagrabber/repositories/DirectMessagesRepository.java | 2 +- app/src/main/java/awais/instagrabber/utils/DMUtils.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java b/app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java index bdb8c29f..01500793 100644 --- a/app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java +++ b/app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java @@ -32,7 +32,7 @@ public interface DirectMessagesRepository { Call fetchThread(@Path("threadId") String threadId, @QueryMap Map queryMap); - @GET("/api/v1/direct_v2/get_badge_count/") + @GET("/api/v1/direct_v2/get_badge_count/?no_raven=1") Call fetchUnseenCount(); @FormUrlEncoded diff --git a/app/src/main/java/awais/instagrabber/utils/DMUtils.java b/app/src/main/java/awais/instagrabber/utils/DMUtils.java index 81429ff7..674e8722 100644 --- a/app/src/main/java/awais/instagrabber/utils/DMUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/DMUtils.java @@ -44,9 +44,9 @@ public final class DMUtils { public static boolean isRead(@NonNull final DirectThread thread) { final boolean read; - if (thread.getDirectStory() != null) { - return false; - } +// if (thread.getDirectStory() != null) { +// return false; +// } final DirectItem item = thread.getFirstDirectItem(); final long viewerId = thread.getViewerId(); if (item != null && item.getUserId() == viewerId) {