2019-05-06 18:18:58 -03:00
|
|
|
package org.thoughtcrime.securesms.notifications;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.database.RecipientDatabase;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
|
|
|
|
|
|
|
public enum ReplyMethod {
|
|
|
|
|
|
|
|
GroupMessage,
|
2020-03-12 09:52:42 +11:00
|
|
|
SecureMessage;
|
2019-05-06 18:18:58 -03:00
|
|
|
|
|
|
|
public static @NonNull ReplyMethod forRecipient(Context context, Recipient recipient) {
|
|
|
|
if (recipient.isGroupRecipient()) {
|
|
|
|
return ReplyMethod.GroupMessage;
|
|
|
|
}
|
2020-03-12 09:52:42 +11:00
|
|
|
return ReplyMethod.SecureMessage;
|
2019-05-06 18:18:58 -03:00
|
|
|
}
|
|
|
|
}
|