mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
literally 4f6039b
, part 2
This commit is contained in:
parent
9b0fea6906
commit
74d3e1ad7d
@ -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) {
|
// if (thread.getDirectStory() != null) {
|
||||||
return false;
|
// 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…
Reference in New Issue
Block a user