Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. private void readFB(GenericSqliteHelper helper, String field_id) {
  2. List<FbConversation> conversations = getFbConversations(field_id, helper, account_uid);
  3. for (FbConversation conv : conversations) {
  4. if (Cfg.DEBUG) {
  5. Check.log(TAG + " (readFbMessageHistory) conversation: " + conv.id);
  6. }
  7. long lastConvId = lastFb.containsKey(conv.id) ? lastFb.get(conv.id) : 0;
  8. if (lastConvId < conv.timestamp) {
  9. if (Cfg.DEBUG) {
  10. Check.log(TAG + " (readFbMessageHistory) lastConvId(" + lastConvId + ") < conv.timestamp("
  11. + conv.timestamp + ")");
  12. }
  13. long lastReadId = (long) fetchMessages(field_id, helper, conv, lastConvId);
  14.  
  15. if (lastReadId > 0) {
  16. updateMarkupFb(conv.id, lastReadId, true);
  17. }
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement