diff --git a/src/matrix-client.vala b/src/matrix-client.vala index 3fef5f7..4a85d07 100644 --- a/src/matrix-client.vala +++ b/src/matrix-client.vala @@ -190,7 +190,7 @@ public interface Matrix.Client : GLib.Object { * state is not cached yet, Matrix.Error.UNAVAILABLE is * thrown. */ - public abstract Presence? + public abstract Presence get_user_presence(string user_id, string? room_id = null) throws Matrix.Error; } diff --git a/src/matrix-http-client.vala b/src/matrix-http-client.vala index 7522ae2..973d893 100644 --- a/src/matrix-http-client.vala +++ b/src/matrix-http-client.vala @@ -420,7 +420,7 @@ public class Matrix.HTTPClient : Matrix.HTTPAPI, Matrix.Client { "Per-room profiles are not supported yet."); } - public Presence? + public Presence get_user_presence(string user_id, string? room_id = null) throws Matrix.Error {