Fix avatar-loading
This commit is contained in:
parent
0637ee0401
commit
b2e17f57dc
|
@ -434,12 +434,10 @@ Server::ImMessage(BMessage* msg)
|
|||
break;
|
||||
|
||||
entry_ref ref;
|
||||
|
||||
if (msg->FindRef("ref", &ref) == B_OK) {
|
||||
BBitmap* bitmap = BTranslationUtils::GetBitmap(&ref);
|
||||
user->SetNotifyAvatarBitmap(bitmap);
|
||||
} else
|
||||
user->SetNotifyAvatarBitmap(NULL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case IM_CREATE_CHAT:
|
||||
|
|
|
@ -190,7 +190,7 @@ User::SetNotifyAvatarBitmap(BBitmap* bitmap)
|
|||
if ((fAvatarBitmap != bitmap) && (bitmap != NULL)) {
|
||||
fAvatarBitmap = bitmap;
|
||||
_SetCachedAvatar(bitmap);
|
||||
NotifyPointer(PTR_AVATAR_BITMAP, (void*)bitmap);
|
||||
NotifyPointer(PTR_AVATAR_BITMAP, (void*)_GetCachedAvatar());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ŝarĝante…
Reference in New Issue