Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
53b5add8
Commit
53b5add8
authored
3 years ago
by
Andreas Traczyk
Committed by
Sébastien Blin
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
chatview: make participant avatars available in the webview
Gitlab:
#492
Change-Id: Ia9df04b26d80b9178993d73bb6ec3f8d187178f9
parent
47c8f601
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/messagesadapter.cpp
+6
-12
6 additions, 12 deletions
src/messagesadapter.cpp
with
6 additions
and
12 deletions
src/messagesadapter.cpp
+
6
−
12
View file @
53b5add8
...
...
@@ -330,19 +330,13 @@ MessagesAdapter::userIsComposing(bool isComposing)
void
MessagesAdapter
::
setConversationProfileData
(
const
conversation
::
Info
&
convInfo
)
{
auto
&
accInfo
=
lrcInstance_
->
getCurrentAccountInfo
();
if
(
convInfo
.
participants
.
isEmpty
())
{
return
;
// make the all the participant avatars available within the web view
for
(
const
auto
&
participant
:
convInfo
.
participants
)
{
QByteArray
ba
;
QBuffer
bu
(
&
ba
);
Utils
::
conversationAvatar
(
lrcInstance_
,
convInfo
.
uid
).
save
(
&
bu
,
"PNG"
);
setSenderImage
(
participant
,
QString
::
fromLocal8Bit
(
ba
.
toBase64
()));
}
auto
title
=
accInfo
.
conversationModel
->
title
(
convInfo
.
uid
);
// make the conversation avatar available within the web view
auto
avatar
=
Utils
::
conversationAvatar
(
lrcInstance_
,
convInfo
.
uid
);
QByteArray
ba
;
QBuffer
bu
(
&
ba
);
avatar
.
save
(
&
bu
,
"PNG"
);
setSenderImage
(
title
,
QString
::
fromLocal8Bit
(
ba
.
toBase64
()));
}
void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment