mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
20 lines
457 B
Java
20 lines
457 B
Java
package org.thoughtcrime.securesms.notifications;
|
|
|
|
import android.content.Context;
|
|
import androidx.annotation.NonNull;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
public enum ReplyMethod {
|
|
|
|
GroupMessage,
|
|
SecureMessage;
|
|
|
|
public static @NonNull ReplyMethod forRecipient(Context context, Recipient recipient) {
|
|
if (recipient.isGroupRecipient()) {
|
|
return ReplyMethod.GroupMessage;
|
|
}
|
|
return ReplyMethod.SecureMessage;
|
|
}
|
|
}
|