mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-03 21:57:44 +00:00
19dddd7adf
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."
23 lines
548 B
Java
23 lines
548 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
public class IncomingEndSessionMessage extends IncomingTextMessage {
|
|
|
|
public IncomingEndSessionMessage(IncomingTextMessage base) {
|
|
this(base, base.getMessageBody());
|
|
}
|
|
|
|
public IncomingEndSessionMessage(IncomingTextMessage base, String newBody) {
|
|
super(base, newBody);
|
|
}
|
|
|
|
@Override
|
|
public IncomingEndSessionMessage withMessageBody(String messageBody) {
|
|
return new IncomingEndSessionMessage(this, messageBody);
|
|
}
|
|
|
|
@Override
|
|
public boolean isEndSession() {
|
|
return true;
|
|
}
|
|
}
|