You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ "WHERE remoteId=? and status!=-1 ORDER BY timestamp"; //$NON-NLS-1$
782
786
783
787
// to address a field must use ` instead of '
784
-
privatestaticfinalStringSELECT_GROUP_MEMBERS = "select gjid as 'group', jid as member FROM group_participants where `group`=?"; //$NON-NLS-1$
788
+
privatestaticfinalStringSELECT_GROUP_MEMBERS = "select gjid as 'group', jid as member, admin FROM group_participants where `group`=?"; //$NON-NLS-1$
789
+
790
+
staticfinalStringSELECT_GROUP_MEMBERS_2 = "select g._id as group_id, g.raw_string as group_name, u._id as user_id, u.raw_string as member, gp.rank > 0 as admin "
791
+
+ "FROM group_participant_user gp inner join jid g on g._id=gp.group_jid_row_id inner join jid u on u._id=gp.user_jid_row_id where u.server='s.whatsapp.net' and u.type=0 and group_name=?"; //$NON-NLS-1$
785
792
786
793
privatestaticfinalStringSELECT_QUOTES_NO_THUMBS_TABLE = "SELECT mq._id AS id, mq.key_remote_jid "
787
794
+ "as remoteId, mq.remote_resource AS remoteResource, mq.status, mq.data, "
+ " left join chat chat1 on chat1.jid_row_id = log.jid_row_id"
1094
1094
+ " left join chat chat2 on chat2.jid_row_id = log.group_jid_row_id";
1095
1095
1096
-
privatestaticfinalStringSELECT_GROUP_MEMBERS = "select g._id as group_id, g.raw_string as group_name, u._id as user_id, u.raw_string as member "
1097
-
+ "FROM group_participant_user gp inner join jid g on g._id=gp.group_jid_row_id inner join jid u on u._id=gp.user_jid_row_id where u.server='s.whatsapp.net' and u.type=0 and group_name=?"; //$NON-NLS-1$
0 commit comments