Skip to content

Commit

Permalink
'#1287: Indicate forwarded WA messages (Android new).
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Apr 28, 2023
1 parent 61e52df commit 3e8f58f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ private List<Message> extractMessages(Connection conn, Chat c) throws SQLExcepti
break;
}
}
m.setForwarded(rs.getInt("forwarded") > 0);
messages.add(m);

}
Expand Down Expand Up @@ -426,6 +427,7 @@ private static String getSelectMessagesQuery(Connection conn) throws SQLExceptio
+ " m.message_type as messageType, latitude, longitude, mm.media_duration, "
+ captionCol + " as mediaCaption, mm.file_hash as mediaHash, thumbnail as thumbData,"
+ " ms.action_type as actionType, m.message_add_on_flags as hasAddOn"
+ " (m.origination_flags & 1) as forwarded"
+ " from message m inner join chat_view cv on m.chat_row_id=cv._id"
+ " left join message_media mm on mm.message_row_id=m._id"
+ " left join jid on jid._id=m.sender_jid_row_id"
Expand Down

0 comments on commit 3e8f58f

Please sign in to comment.