mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Check for self before getting polls.
This commit is contained in:
committed by
Cody Henthorne
parent
7b34dc75b3
commit
7b6c2fa729
@@ -498,7 +498,7 @@ class PollTables(context: Context?, databaseHelper: SignalDatabase?) : DatabaseT
|
||||
* Maps message ids to its associated poll (if it exists)
|
||||
*/
|
||||
fun getPollsForMessages(messageIds: Collection<Long>): Map<Long, PollRecord> {
|
||||
if (messageIds.isEmpty()) {
|
||||
if (messageIds.isEmpty() || !Recipient.isSelfSet) {
|
||||
return emptyMap()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user