mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Remove self from mention picker.
This commit is contained in:
@@ -3381,7 +3381,9 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||
RecipientReader(readableDatabase.query(TABLE_NAME, MENTION_SEARCH_PROJECTION, selection, SqlUtil.buildArgs(query), null, null, SORT_NAME)).use { reader ->
|
||||
var recipient: Recipient? = reader.getNext()
|
||||
while (recipient != null) {
|
||||
recipients.add(recipient)
|
||||
if (!recipient.isSelf) {
|
||||
recipients.add(recipient)
|
||||
}
|
||||
recipient = reader.getNext()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user