mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Don't check self number in recipients refresh
This commit is contained in:
parent
0014a69528
commit
790b7f1a2f
1 changed files with 2 additions and 0 deletions
|
@ -387,10 +387,12 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
|
||||||
WHERE r.number IS NOT NULL
|
WHERE r.number IS NOT NULL
|
||||||
"""
|
"""
|
||||||
).formatted(TABLE_RECIPIENT);
|
).formatted(TABLE_RECIPIENT);
|
||||||
|
final var selfNumber = selfAddressProvider.getSelfAddress().number().orElse(null);
|
||||||
try (final var connection = database.getConnection()) {
|
try (final var connection = database.getConnection()) {
|
||||||
try (final var statement = connection.prepareStatement(sql)) {
|
try (final var statement = connection.prepareStatement(sql)) {
|
||||||
return Utils.executeQueryForStream(statement, resultSet -> resultSet.getString("number"))
|
return Utils.executeQueryForStream(statement, resultSet -> resultSet.getString("number"))
|
||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
|
.filter(n -> !n.equals(selfNumber))
|
||||||
.filter(n -> {
|
.filter(n -> {
|
||||||
try {
|
try {
|
||||||
Long.parseLong(n);
|
Long.parseLong(n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue