Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Feb 11, 2021
1 parent 77e560b commit 6c01162
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public void initSession(JSONObject bundle) {
}
}

public boolean checkPairwiseSession(String oneTimeId) {
public boolean hasPairwiseSession(String oneTimeId) {
SignalProtocolStore store = new MySignalProtocolStore(context);
SignalProtocolAddress signalProtocolAddress = new SignalProtocolAddress(oneTimeId, 0);
return store.containsSession(signalProtocolAddress);
Expand Down Expand Up @@ -431,7 +431,7 @@ public String encryptText(String userId, String stickId, String text, Boolean is
return null;
}

public Boolean isSessionEmpty(String senderId, String stickId, Boolean isSticky) {
public Boolean isStickySessionEmpty(String senderId, String stickId, Boolean isSticky) {
SenderKeyStore mySenderKeyStore = new MySenderKeyStore(context);
SignalProtocolAddress signalProtocolAddress = new SignalProtocolAddress(senderId, isSticky ? 1 : 0);
SenderKeyName senderKeyName = new SenderKeyName(stickId, signalProtocolAddress);
Expand Down
32 changes: 32 additions & 0 deletions server/.idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions server/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions server/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions server/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions server/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c01162

Please sign in to comment.