Add per-room profile caching
This commit is contained in:
parent
15d1896669
commit
3dd3568384
@ -414,8 +414,14 @@ public class Matrix.HTTPClient : Matrix.HTTPAPI, Matrix.Client {
|
||||
return profile;
|
||||
}
|
||||
|
||||
throw new Matrix.Error.UNSUPPORTED(
|
||||
"Per-room profiles are not supported yet.");
|
||||
var room = _rooms[room_id];
|
||||
|
||||
if (room == null) {
|
||||
throw new Matrix.Error.UNAVAILABLE(
|
||||
"Room data for %s is not cached yet.", room_id);
|
||||
}
|
||||
|
||||
return room.get_member(user_id, null);
|
||||
}
|
||||
|
||||
public Presence
|
||||
|
Loading…
Reference in New Issue
Block a user