Remove old notification system and notification rewrite feature flag.

This commit is contained in:
Cody Henthorne
2021-06-08 11:20:19 -04:00
committed by GitHub
parent b6c653ff77
commit c72dd86fed
21 changed files with 69 additions and 2364 deletions

View File

@@ -20,6 +20,7 @@ public class InMemoryMessageRecord extends MessageRecord {
private static final int NO_GROUPS_IN_COMMON_ID = -1;
private static final int UNIVERSAL_EXPIRE_TIMER_ID = -2;
private static final int FORCE_BUBBLE_ID = -3;
private InMemoryMessageRecord(long id,
String body,
@@ -137,4 +138,13 @@ public class InMemoryMessageRecord extends MessageRecord {
return true;
}
}
/**
* Useful for create an empty message record when one is needed.
*/
public static final class ForceConversationBubble extends InMemoryMessageRecord {
public ForceConversationBubble(Recipient conversationRecipient, long threadId) {
super(FORCE_BUBBLE_ID, "", conversationRecipient, threadId, 0);
}
}
}