Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
6ce274e4
Commit
6ce274e4
authored
4 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
ConversationPath: cleanup
Change-Id: I5b68f8ff7e27e4d05dcff5959e7c5083bdcc054f
parent
c3b8c0bf
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
ring-android/app/src/main/java/cx/ring/utils/ConversationPath.java
+8
-8
8 additions, 8 deletions
...oid/app/src/main/java/cx/ring/utils/ConversationPath.java
with
8 additions
and
8 deletions
ring-android/app/src/main/java/cx/ring/utils/ConversationPath.java
+
8
−
8
View file @
6ce274e4
...
...
@@ -38,16 +38,16 @@ public class ConversationPath {
return
toUri
(
accountId
,
contactId
);
}
public
static
Uri
toUri
(
String
accountId
,
String
contactId
)
{
Uri
.
Builder
builder
=
ContentUriHandler
.
CONVERSATION_CONTENT_URI
.
buildUpon
()
;
builder
=
builder
.
appendEncodedPath
(
accountId
)
;
builder
=
builder
.
appendEncodedPath
(
contactId
)
;
return
builder
.
build
();
return
ContentUriHandler
.
CONVERSATION_CONTENT_URI
.
buildUpon
()
.
appendEncodedPath
(
accountId
)
.
appendEncodedPath
(
contactId
)
.
build
();
}
public
static
Uri
toUri
(
String
accountId
,
@NonNull
cx
.
ring
.
model
.
Uri
contactUri
)
{
Uri
.
Builder
builder
=
ContentUriHandler
.
CONVERSATION_CONTENT_URI
.
buildUpon
()
;
builder
=
builder
.
appendEncodedPath
(
accountId
)
;
builder
=
builder
.
appendEncodedPath
(
contactUri
.
getUri
())
;
return
builder
.
build
();
return
ContentUriHandler
.
CONVERSATION_CONTENT_URI
.
buildUpon
()
.
appendEncodedPath
(
accountId
)
.
appendEncodedPath
(
contactUri
.
getUri
())
.
build
();
}
public
static
Uri
toUri
(
@NonNull
Interaction
interaction
)
{
return
toUri
(
interaction
.
getAccount
(),
new
cx
.
ring
.
model
.
Uri
(
interaction
.
getConversation
().
getParticipant
()));
...
...
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