Bugfix: Avatar picture.
This commit is contained in:
parent
fa1cf4a6d8
commit
390a6c3ef1
@ -1,10 +1,9 @@
|
|||||||
accessing
|
accessing
|
||||||
avatarPicture
|
avatarPicture
|
||||||
| response tempImage |
|
| response |
|
||||||
response := ZnClient new url: (self profileImageUrl); get; response.
|
response := ZnClient new url: (self profileImageUrl); get; response.
|
||||||
response contentType = ZnMimeType imageJpeg
|
response contentType = ZnMimeType imageJpeg
|
||||||
ifTrue: [ tempImage := (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ].
|
ifTrue: [ ^ (PluginBasedJPEGReadWriter gtFromBuffer: response contents) asElement ].
|
||||||
response contentType = ZnMimeType imagePng
|
response contentType = ZnMimeType imagePng
|
||||||
ifTrue: [ tempImage := (PNGReadWriter gtFromBuffer: response contents) asElement ].
|
ifTrue: [ ^ (PNGReadWriter gtFromBuffer: response contents) asElement ].
|
||||||
tempImage on: Error do: [ ^ GtABContact new avatar ].
|
^ GtABContact new avatar
|
||||||
^ tempImage value asElement .
|
|
Loading…
Reference in New Issue
Block a user