mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Use original message id for edit message history.
This commit is contained in:
@@ -1942,7 +1942,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
fun getMessageEditHistory(id: Long): MmsReader {
|
||||
val cursor = readableDatabase.select(*MMS_PROJECTION)
|
||||
.from(TABLE_NAME)
|
||||
.where("$TABLE_NAME.$ID = ? OR $TABLE_NAME.$LATEST_REVISION_ID = ?", id, id)
|
||||
.where("$TABLE_NAME.$ID = ? OR $TABLE_NAME.$ORIGINAL_MESSAGE_ID = ?", id, id)
|
||||
.orderBy("$TABLE_NAME.$DATE_SENT ASC")
|
||||
.run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user