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