Improve output for profile key update messages

This commit is contained in:
AsamK 2022-06-18 12:11:36 +02:00
parent adce64bc21
commit abebffb2cd
3 changed files with 8 additions and 1 deletions

View file

@ -141,9 +141,12 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
if (message.expiresInSeconds() > 0) {
writer.println("Expires in: {} seconds", message.expiresInSeconds());
}
if (message.hasProfileKey()) {
if (message.isProfileKeyUpdate()) {
writer.println("Profile key update");
}
if (message.hasProfileKey()) {
writer.println("With profile key");
}
if (message.reaction().isPresent()) {
writer.println("Reaction:");
final var reaction = message.reaction().get();

View file

@ -757,6 +757,7 @@ public class DbusManagerImpl implements Manager {
false,
false,
false,
false,
Optional.empty(),
Optional.empty(),
Optional.empty(),
@ -827,6 +828,7 @@ public class DbusManagerImpl implements Manager {
false,
false,
false,
false,
Optional.empty(),
Optional.empty(),
Optional.empty(),