mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Dedupe packs when reading from sticker table.
This commit is contained in:
@@ -166,13 +166,16 @@ class StickerTable(
|
||||
}
|
||||
|
||||
fun getAllStickerPacks(limit: String?): Cursor {
|
||||
return readableDatabase
|
||||
.select()
|
||||
.from(TABLE_NAME)
|
||||
.where("$COVER = 1")
|
||||
.orderBy("$PACK_ORDER ASC")
|
||||
.limit(limit ?: "")
|
||||
.run()
|
||||
return readableDatabase.query(
|
||||
TABLE_NAME,
|
||||
null,
|
||||
"$COVER = 1",
|
||||
null,
|
||||
PACK_ID,
|
||||
null,
|
||||
"$PACK_ORDER ASC",
|
||||
limit
|
||||
)
|
||||
}
|
||||
|
||||
fun getStickersForPack(packId: String): Cursor {
|
||||
|
||||
Reference in New Issue
Block a user