]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/dbus/DbusSignalImpl.java
implement Dbus setExpirationTimer (#735)
[signal-cli] / src / main / java / org / asamk / signal / dbus / DbusSignalImpl.java
index 4a478f13398f4ee4218677242ea08154e7ddc5db..dfd55f62a5985e7e8c61021bebc99126384fe1fa 100644 (file)
@@ -305,6 +305,15 @@ public class DbusSignalImpl implements Signal {
         }
     }
 
+    @Override
+    public void setExpirationTimer(final String number, final int expiration) {
+        try {
+            m.setExpirationTimer(getSingleRecipientIdentifier(number, m.getUsername()), expiration);
+        } catch (IOException e) {
+            throw new Error.Failure(e.getMessage());
+        }
+    }
+
     @Override
     public void setContactBlocked(final String number, final boolean blocked) {
         try {