Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
2 changed files with
4 additions and
4 deletions
-
app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java
-
app/src/main/java/awais/instagrabber/utils/DMUtils.java
|
@ -32,7 +32,7 @@ public interface DirectMessagesRepository { |
|
|
Call<DirectThreadFeedResponse> fetchThread(@Path("threadId") String threadId, |
|
|
Call<DirectThreadFeedResponse> fetchThread(@Path("threadId") String threadId, |
|
|
@QueryMap Map<String, Object> queryMap); |
|
|
@QueryMap Map<String, Object> queryMap); |
|
|
|
|
|
|
|
|
@GET("/api/v1/direct_v2/get_badge_count/") |
|
|
|
|
|
|
|
|
@GET("/api/v1/direct_v2/get_badge_count/?no_raven=1") |
|
|
Call<DirectBadgeCount> fetchUnseenCount(); |
|
|
Call<DirectBadgeCount> fetchUnseenCount(); |
|
|
|
|
|
|
|
|
@FormUrlEncoded |
|
|
@FormUrlEncoded |
|
|
|
@ -44,9 +44,9 @@ public final class DMUtils { |
|
|
|
|
|
|
|
|
public static boolean isRead(@NonNull final DirectThread thread) { |
|
|
public static boolean isRead(@NonNull final DirectThread thread) { |
|
|
final boolean read; |
|
|
final boolean read; |
|
|
if (thread.getDirectStory() != null) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (thread.getDirectStory() != null) { |
|
|
|
|
|
// return false; |
|
|
|
|
|
// } |
|
|
final DirectItem item = thread.getFirstDirectItem(); |
|
|
final DirectItem item = thread.getFirstDirectItem(); |
|
|
final long viewerId = thread.getViewerId(); |
|
|
final long viewerId = thread.getViewerId(); |
|
|
if (item != null && item.getUserId() == viewerId) { |
|
|
if (item != null && item.getUserId() == viewerId) { |
|
|