Improve various aspects of mentions.

This commit is contained in:
Cody Henthorne
2020-08-18 18:13:45 -04:00
committed by GitHub
parent 72b94127fb
commit 139317cf1b
5 changed files with 22 additions and 5 deletions

View File

@@ -101,6 +101,11 @@ public class MegaphoneRepository {
@AnyThread
public void markFinished(@NonNull Event event) {
executor.execute(() -> {
MegaphoneRecord record = databaseCache.get(event);
if (record != null && record.isFinished()) {
return;
}
database.markFinished(event);
resetDatabaseCache();
});

View File

@@ -211,7 +211,7 @@ public final class Megaphones {
}
private static boolean shouldShowMentionsMegaphone() {
return FeatureFlags.mentions() && FeatureFlags.groupsV2();
return FeatureFlags.mentions();
}
private static boolean shouldShowLinkPreviewsMegaphone(@NonNull Context context) {