Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
giomfo committed Jun 20, 2018
1 parent fe21298 commit 77661f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vector/src/main/java/fr/gouv/tchap/util/DinsicUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,8 @@ public static void startDirectChat(final RiotAppCompatActivity activity, final M

// Tell if contact is tchap user
if (MXSession.isUserId(selectedContact.mUserId)) { // || DinsicUtils.isFromFrenchGov(item.mContact.getEmails()))
// The contact is a Tchap user
// The contact is a Tchap user, try to open an existing direct chat
if (!DinsicUtils.openDirectChat(activity, selectedContact.mUserId, session, false)) {
//to be consciensously reviewed!
// // If a direct chat already exist with him, open it
// DinsicUtils.openDirectChat(activity, selectedContact.mUserId, session, true);
// } else {
// If it's a Tchap user without a direct chat with him
// Display a popup to confirm the creation of a new direct chat with him
String msg = activity.getResources().getString(R.string.start_new_chat_prompt_msg, selectedContact.mDisplayName);
Expand Down

0 comments on commit 77661f3

Please sign in to comment.