@@ -34,20 +34,12 @@ export class AvatarURL {
34
34
| } ) : AvatarURL {
35
35
const { rawAvatarUrl, userId, email, realm } = args ;
36
36
if ( rawAvatarUrl === undefined ) {
37
- // New in Zulip 3.0, feature level 18, the field may be missing
38
- // on user objects in the register response, at the server's
39
- // discretion, if we announce the
40
- // `user_avatar_url_field_optional` client capability, which we
41
- // do. See the note about `user_avatar_url_field_optional` at
42
- // https://zulip.com/api/register-queue.
37
+ // New in Zulip 3.0, feature level 18, the field may be missing on
38
+ // user objects in the register response, at the server's discretion,
39
+ // if we announce the `user_avatar_url_field_optional` client
40
+ // capability, which we do. See `user_avatar_url_field_optional` at:
41
+ // https://zulip.com/api/register-queue
43
42
//
44
- // It will also be absent on cross-realm bots from servers prior
45
- // to 58ee3fa8c (1.9.0). The effect of using FallbackAvatarURL for
46
- // this case isn't thoroughly considered, but at worst, it means a
47
- // 404. We could plumb through the server version and
48
- // conditionalize on that.
49
- //
50
- // TODO(server-1.9): Simplify this comment.
51
43
// TODO(server-3.0): Simplify this comment.
52
44
return FallbackAvatarURL . validateAndConstructInstance ( { realm, userId } ) ;
53
45
} else if ( rawAvatarUrl === null ) {
0 commit comments