Commit 64e1967a authored by Anthony Léonard's avatar Anthony Léonard Committed by Olivier SOLDANO

fix profile pictures in conversations

Profile picture from contact was used for both its messages and local
ones. The later one is now displaying our default picture.

It is a temporary measure to fix a confusing situation and the default
picture is meant to be replaced by the chosen picture for local
account.

Change-Id: Id347f59ec6afe4ea9750702e6c8eabaa5e6fedad
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent cb73a2cb
......@@ -208,7 +208,12 @@
[result updateWidthConstraint:finalWidth];
auto& imageManip = reinterpret_cast<Interfaces::ImageManipulationDelegate&>(GlobalInstances::pixmapManipulator());
[result.photoView setImage:QtMac::toNSImage(qvariant_cast<QPixmap>(imageManip.conversationPhoto(*conv, convModel_->owner)))];
if (isOutgoing) {
[result.photoView setImage:[NSImage imageNamed:@"default_user_icon"]];
} else {
[result.photoView setImage:QtMac::toNSImage(qvariant_cast<QPixmap>(imageManip.conversationPhoto(*conv, convModel_->owner)))];
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment