Skip to content

Commit

Permalink
sepinf-inc#2286: don't consider participant with invalid uid in Teleg…
Browse files Browse the repository at this point in the history
…ram groups
  • Loading branch information
aberenguel committed Aug 8, 2024
1 parent 209ec2a commit a71f1b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ private String getAndroidExtractMessagesSQL() throws SQLException {
+ " from dialogs d LEFT join users u on u.uid=d.did WHERE d.did NOT IN (SELECT -uid FROM chats) "
+ " order by date desc";

private static final String MEMBERS_CHATS_SQL = "SELECT * from channel_users_v2 where did=?";
private static final String MEMBERS_CHATS_SQL = "SELECT * from channel_users_v2 where did=? AND uid > 0";

private static final String SELECT_CHATS_SETTINGS = "SELECT participants_count FROM chat_settings_v2 WHERE uid=?";

private static final String SELECT_CHANNEL_ADMINS = "SELECT uid FROM channel_admins_v3 WHERE did=?";
private static final String SELECT_CHANNEL_ADMINS = "SELECT uid FROM channel_admins_v3 WHERE did=? AND uid > 0";

private static final String CHATS_SQL_IOS = "select substr(key,16,8) as chatid, false as deleted from t9 "
+ "UNION SELECT substr(t7.key,1,8) as chatid, true as deleted from t7 "
Expand Down

0 comments on commit a71f1b0

Please sign in to comment.