Browse Source

literally 4f6039b, part 2

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
74d3e1ad7d
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.java
  2. 6
      app/src/main/java/awais/instagrabber/utils/DMUtils.java

2
app/src/main/java/awais/instagrabber/repositories/DirectMessagesRepository.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

6
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) { 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) {

Loading…
Cancel
Save