20 lines
457 B
Java
Raw Normal View History

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;
}
}