consolidated downloads dir, nextcloud origin, upload route and chat timestamps; added webdav path tests
This commit is contained in:
@@ -78,14 +78,14 @@ final ValueNotifier<int> _avatarCacheGeneration = ValueNotifier<int>(0);
|
||||
|
||||
String avatarUrl({required String id, required bool isGroup, int size = 512}) {
|
||||
if (isGroup) {
|
||||
final host = EndpointData().nextcloud().full();
|
||||
return 'https://$host/ocs/v2.php/apps/spreed/api/v1/room/$id/avatar';
|
||||
final origin = EndpointData().nextcloud().origin();
|
||||
return '$origin/ocs/v2.php/apps/spreed/api/v1/room/$id/avatar';
|
||||
}
|
||||
return '${_userAvatarUrlPrefix(id)}$size';
|
||||
}
|
||||
|
||||
String _userAvatarUrlPrefix(String id) =>
|
||||
'https://${EndpointData().nextcloud().full()}/avatar/$id/';
|
||||
'${EndpointData().nextcloud().origin()}/avatar/$id/';
|
||||
|
||||
/// Resolves an avatar through the shared caches: in-memory first, then disk,
|
||||
/// then the network — the fetch being deduped across every concurrent caller
|
||||
|
||||
Reference in New Issue
Block a user