Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
don't enable OTR manually; only if OMEMO is not available
Browse files Browse the repository at this point in the history
- also don't update the "warning view" so much
  • Loading branch information
n8fr8 committed May 25, 2018
1 parent c1bb030 commit 66d4cb0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ private boolean checkConnection ()

}

/**
public void setOTRState(boolean otrEnabled) {
try {
Expand Down Expand Up @@ -473,7 +474,7 @@ public void setOTRState(boolean otrEnabled) {
}
}
}**/



Expand Down Expand Up @@ -1901,7 +1902,7 @@ void requeryCursor() {

mMessageAdapter.notifyDataSetChanged();
mLoaderManager.restartLoader(loaderId++, null, new MyLoaderCallbacks());
updateWarningView();
// updateWarningView();

/**
if (mMessageAdapter.isScrolling()) {
Expand All @@ -1928,7 +1929,6 @@ public void closeChatSession(boolean doDelete) {
if (getChatSession() != null) {
try {

setOTRState(false);
updateWarningView();
getChatSession().leave();

Expand Down Expand Up @@ -3469,8 +3469,6 @@ private void startChat (String username)

if (username != null) {



new ChatSessionInitTask(((ImApp) mActivity.getApplication()), mProviderId, mAccountId, Imps.Contacts.TYPE_NORMAL, true) {
@Override
protected void onPostExecute(Long chatId) {
Expand Down

0 comments on commit 66d4cb0

Please sign in to comment.