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-windows
Commits
c4e86975
Commit
c4e86975
authored
Jan 18, 2019
by
Andreas Traczyk
Browse files
chatview: check trust status before hiding add contact button
Change-Id: Idd1a3839315129c9ca4507d3e9a1d1079db4cc18
parent
8541ffa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
callwidget.cpp
View file @
c4e86975
...
...
@@ -839,8 +839,10 @@ CallWidget::setupChatView(const lrc::api::conversation::Info& convInfo)
auto
&
accountInfo
=
LRCInstance
::
accountModel
().
getAccountInfo
(
selectedAccountId
);
bool
isRINGAccount
=
accountInfo
.
profileInfo
.
type
==
lrc
::
api
::
profile
::
Type
::
RING
;
try
{
accountInfo
.
contactModel
->
getContact
(
contactURI
.
toStdString
());
isContact
=
true
;
auto
contactInfo
=
accountInfo
.
contactModel
->
getContact
(
contactURI
.
toStdString
());
if
(
contactInfo
.
isTrusted
)
{
isContact
=
true
;
}
}
catch
(...)
{}
ui
->
imNameLabel
->
setText
(
QString
(
tr
(
"%1"
,
"%1 is the contact username"
))
...
...
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