mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Do not notify for reactions if not the group story sender.
This commit is contained in:
committed by
Greyson Parrelli
parent
6d24c342d2
commit
bd5907ea04
@@ -885,7 +885,9 @@ public class MmsDatabase extends MessageDatabase {
|
||||
public boolean hasSelfReplyInGroupStory(long parentStoryId) {
|
||||
SQLiteDatabase db = databaseHelper.getSignalReadableDatabase();
|
||||
String[] columns = new String[]{"COUNT(*)"};
|
||||
String where = PARENT_STORY_ID + " = ? AND (" + getOutgoingTypeClause() + ")";
|
||||
String where = PARENT_STORY_ID + " = ? AND (" +
|
||||
getOutgoingTypeClause() + ") AND ("
|
||||
+ MESSAGE_BOX + " & " + Types.SPECIAL_TYPES_MASK + " != " + Types.SPECIAL_TYPE_STORY_REACTION + ")";
|
||||
String[] whereArgs = SqlUtil.buildArgs(parentStoryId);
|
||||
|
||||
try (Cursor cursor = db.query(TABLE_NAME, columns, where, whereArgs, null, null, null, null)) {
|
||||
|
||||
Reference in New Issue
Block a user