Fix updating avatar on chat delegate

Fixed updating avatars if chat was opened before avatar was received
from the server.