mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
1) On the push side, this message is a flag in PushMessageContent. Any secure message with that flag will terminate the current sessin. 2) On the SMS side, there is an "end session" wire type and the convention that a message with this wire type must be secure and contain the string "TERMINATE."
9 lines
222 B
Java
9 lines
222 B
Java
package org.thoughtcrime.securesms.protocol;
|
|
|
|
public class EndSessionWirePrefix extends WirePrefix {
|
|
@Override
|
|
public String calculatePrefix(String message) {
|
|
return super.calculateEndSessionPrefix(message);
|
|
}
|
|
}
|