Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-qt
Commits
0adc815a
Commit
0adc815a
authored
Dec 20, 2021
by
Sébastien Blin
Committed by
Kateryna Kostiuk
Dec 30, 2021
Browse files
profiles: do not cache avatars in LRC
This reduces memory usage. Change-Id: Iddb54a844ffacfc96b7758b2a9317e68e04750c4
parent
af0ae356
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mainapplication.cpp
View file @
0adc815a
...
...
@@ -315,6 +315,7 @@ MainApplication::loadTranslations()
void
MainApplication
::
initLrc
(
const
QString
&
downloadUrl
,
ConnectivityMonitor
*
cm
,
bool
logDaemon
)
{
lrc
::
api
::
Lrc
::
cacheAvatars
.
store
(
false
);
/*
* Init mainwindow and finish splash when mainwindow shows up.
*/
...
...
src/utils.cpp
View file @
0adc815a
...
...
@@ -357,7 +357,7 @@ Utils::contactPhoto(LRCInstance* instance,
auto
&
accInfo
=
instance
->
accountModel
().
getAccountInfo
(
accountId
.
isEmpty
()
?
instance
->
get_currentAccountId
()
:
accountId
);
auto
contactInfo
=
accInfo
.
contactModel
->
getContact
(
contactUri
);
auto
contactPhoto
=
cont
ac
t
Info
.
profileInfo
.
avatar
;
auto
contactPhoto
=
ac
c
Info
.
contactModel
->
avatar
(
contactUri
)
;
auto
bestName
=
accInfo
.
contactModel
->
bestNameForContact
(
contactUri
);
if
(
accInfo
.
profileInfo
.
type
==
profile
::
Type
::
SIP
&&
contactInfo
.
profileInfo
.
type
==
profile
::
Type
::
TEMPORARY
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment