Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Archive sessions on 409/410 instead of deleting them.
- Loading branch information
1 parent
2a3f850
commit 2751076
Showing
5 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ervice/src/main/java/org/whispersystems/signalservice/api/SignalServiceProtocolStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.whispersystems.signalservice.api; | ||
|
||
import org.whispersystems.libsignal.state.SignalProtocolStore; | ||
|
||
/** | ||
* And extension of the normal protocol store interface that has additional methods that are needed | ||
* in the service layer, but not the protocol layer. | ||
*/ | ||
public interface SignalServiceProtocolStore extends SignalProtocolStore, SignalServiceSessionStore { | ||
} |
12 changes: 12 additions & 0 deletions
12
...service/src/main/java/org/whispersystems/signalservice/api/SignalServiceSessionStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.whispersystems.signalservice.api; | ||
|
||
import org.whispersystems.libsignal.SignalProtocolAddress; | ||
import org.whispersystems.libsignal.state.SessionStore; | ||
|
||
/** | ||
* And extension of the normal protocol session store interface that has additional methods that are | ||
* needed in the service layer, but not the protocol layer. | ||
*/ | ||
public interface SignalServiceSessionStore extends SessionStore { | ||
void archiveSession(SignalProtocolAddress address); | ||
} |