mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 19:56:00 +00:00
Fix jump position for quotes.
This commit is contained in:
committed by
Cody Henthorne
parent
bc8c8a049f
commit
c90779beea
@@ -221,9 +221,10 @@ class ConversationRepository(
|
||||
oldConversationRepository.markGiftBadgeRevealed(messageId)
|
||||
}
|
||||
|
||||
/** Quoted Message position is a zero-based index, so we need to convert it to 1-based */
|
||||
fun getQuotedMessagePosition(threadId: Long, quote: Quote): Single<Int> {
|
||||
return Single.fromCallable {
|
||||
SignalDatabase.messages.getQuotedMessagePosition(threadId, quote.id, quote.author)
|
||||
SignalDatabase.messages.getQuotedMessagePosition(threadId, quote.id, quote.author) + 1
|
||||
}.subscribeOn(Schedulers.io())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user