mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Show recipient of sent sync message also when destination is not present
This commit is contained in:
parent
0ce64dc923
commit
eb0648828a
1 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,13 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
String dest = sentTranscriptMessage.getDestination().get().getNumber().get();
|
||||
ContactInfo destContact = m.getContact(dest);
|
||||
to = (destContact == null ? "" : "“" + destContact.name + "” ") + dest;
|
||||
} else if (sentTranscriptMessage.getRecipients().size() > 0) {
|
||||
StringBuilder toBuilder = new StringBuilder();
|
||||
for (SignalServiceAddress dest : sentTranscriptMessage.getRecipients()) {
|
||||
ContactInfo destContact = m.getContact(dest.getNumber().get());
|
||||
toBuilder.append(destContact == null ? "" : "“" + destContact.name + "” ").append(dest.getNumber().get()).append(" ");
|
||||
}
|
||||
to = toBuilder.toString();
|
||||
} else {
|
||||
to = "Unknown";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue