mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Display reply icon if you responded 1:1 to the displayed story.
This commit is contained in:
committed by
Cody Henthorne
parent
bcd16ce296
commit
46bb64ad24
@@ -743,8 +743,8 @@ public class MmsDatabase extends MessageDatabase {
|
||||
public boolean hasSelfReplyInStory(long parentStoryId) {
|
||||
SQLiteDatabase db = databaseHelper.getSignalReadableDatabase();
|
||||
String[] columns = new String[]{"COUNT(*)"};
|
||||
String where = PARENT_STORY_ID + " = ? AND " + RECIPIENT_ID + " = ?";
|
||||
String[] whereArgs = SqlUtil.buildArgs(parentStoryId, Recipient.self().getId());
|
||||
String where = PARENT_STORY_ID + " = ? AND (" + getOutgoingTypeClause() + ")";
|
||||
String[] whereArgs = SqlUtil.buildArgs(-parentStoryId);
|
||||
|
||||
try (Cursor cursor = db.query(TABLE_NAME, columns, where, whereArgs, null, null, null, null)) {
|
||||
return cursor != null && cursor.moveToNext() && cursor.getInt(0) > 0;
|
||||
|
||||
Reference in New Issue
Block a user