Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
b04fa234
Commit
b04fa234
authored
3 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
contactmodel: ignore trust request if a conversation request is there
Change-Id: If1de131e1bd2d076fc10163aaa97b48de4d632ab
parent
7f437856
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/contactmodel.cpp
+3
-2
3 additions, 2 deletions
src/contactmodel.cpp
with
3 additions
and
2 deletions
src/contactmodel.cpp
+
3
−
2
View file @
b04fa234
...
...
@@ -679,8 +679,10 @@ ContactModelPimpl::fillWithJamiContacts()
for
(
const
auto
&
tr_info
:
pending_tr
)
{
// Get pending requests.
auto
payload
=
tr_info
[
DRing
::
Account
::
TrustRequest
::
PAYLOAD
].
toUtf8
();
auto
contactUri
=
tr_info
[
DRing
::
Account
::
TrustRequest
::
FROM
];
auto
convId
=
tr_info
[
DRing
::
Account
::
TrustRequest
::
CONVERSATIONID
];
if
(
!
convId
.
isEmpty
())
continue
;
// This will be added via getConversationsRequests
auto
contactInfo
=
storage
::
buildContactFromProfile
(
linked
.
owner
.
id
,
contactUri
,
...
...
@@ -700,7 +702,6 @@ ContactModelPimpl::fillWithJamiContacts()
contactInfo
.
profileInfo
.
avatar
=
photo
.
constData
();
contactInfo
.
registeredName
=
""
;
contactInfo
.
isBanned
=
false
;
contactInfo
.
conversationId
=
tr_info
[
DRing
::
Account
::
TrustRequest
::
CONVERSATIONID
];
{
std
::
lock_guard
<
std
::
mutex
>
lk
(
contactsMtx_
);
...
...
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