2020-08-19 10:06:26 +10:00

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