mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
[SMS Plugin] Don't remove the sending address if it is the only thing in the list
This commit is contained in:
parent
a1fb54faf1
commit
23b8d2e70b
@ -123,8 +123,11 @@ public class SmsMmsUtils {
|
||||
}
|
||||
|
||||
if (sendingPhoneNumber.number != null) {
|
||||
// Remove the user's phone number if present in the list of recipients
|
||||
addressList.removeIf(address -> sendingPhoneNumber.isMatchingPhoneNumber(address.address));
|
||||
// If the message is going to more than one target (to allow the user to send a message to themselves)
|
||||
if (addressList.size() > 1) {
|
||||
// Remove the user's phone number if present in the list of recipients
|
||||
addressList.removeIf(address -> sendingPhoneNumber.isMatchingPhoneNumber(address.address));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user