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
7091f596
Commit
7091f596
authored
Jan 09, 2020
by
Ming Rui Zhang
Committed by
Sébastien Blin
Jan 10, 2020
Browse files
callwidget: recover add contact button on sip account
Change-Id: If6dd5453f146ba9cc2d2cc6bb1a3b0bf35798762
parent
124c2a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/callwidget.cpp
View file @
7091f596
...
...
@@ -936,18 +936,21 @@ CallWidget::setupChatView(const lrc::api::conversation::Info& convInfo)
auto
selectedAccountId
=
LRCInstance
::
getCurrAccId
();
auto
&
accountInfo
=
LRCInstance
::
accountModel
().
getAccountInfo
(
selectedAccountId
);
bool
isRINGAccount
=
accountInfo
.
profileInfo
.
type
==
lrc
::
api
::
profile
::
Type
::
RING
;
lrc
::
api
::
profile
::
Type
contactType
;
try
{
auto
contactInfo
=
accountInfo
.
contactModel
->
getContact
(
contactURI
.
toStdString
());
if
(
contactInfo
.
isTrusted
)
{
isContact
=
true
;
}
contactType
=
contactInfo
.
profileInfo
.
type
;
}
catch
(...)
{}
ui
->
imNameLabel
->
setText
(
displayName
);
ui
->
imIdLabel
->
setText
(
displayId
);
ui
->
imIdLabel
->
setVisible
(
isRINGAccount
&&
displayName
!=
displayId
);
bool
shouldShowSendContactRequestBtn
=
!
isContact
&&
isRINGAc
co
u
nt
;
bool
shouldShowSendContactRequestBtn
=
!
isContact
&&
cont
actType
!=
lrc
::
api
::
profile
::
Type
::
SIP
;
ui
->
sendContactRequestButton
->
setVisible
(
shouldShowSendContactRequestBtn
);
ui
->
messageView
->
setMessagesVisibility
(
false
);
...
...
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