-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Message Request logic to fix some GV1->GV2 bugs.
- Loading branch information
1 parent
ce44e39
commit 43e3ef2
Showing
11 changed files
with
203 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/src/main/java/org/thoughtcrime/securesms/messagerequests/MessageRequestState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.thoughtcrime.securesms.messagerequests; | ||
|
||
/** | ||
* An enum representing the possible message request states a user can be in. | ||
*/ | ||
public enum MessageRequestState { | ||
/** No message request necessary */ | ||
NONE, | ||
|
||
/** A user is blocked */ | ||
BLOCKED_INDIVIDUAL, | ||
|
||
/** A group is blocked */ | ||
BLOCKED_GROUP, | ||
|
||
/** An individual conversation that existed pre-message-requests but doesn't have profile sharing enabled */ | ||
LEGACY_INDIVIDUAL, | ||
|
||
/** A V1 group conversation that existed pre-message-requests but doesn't have profile sharing enabled */ | ||
LEGACY_GROUP_V1, | ||
|
||
/** A V1 group conversation that is no longer allowed, because we've forced GV2 on. */ | ||
DEPRECATED_GROUP_V1, | ||
|
||
/** A V1 group conversation that is no longer allowed, because we've forced GV2 on, but it's also too large to migrate. Nothing we can do. */ | ||
DEPRECATED_GROUP_V1_TOO_LARGE, | ||
|
||
/** A message request is needed for a V1 group */ | ||
GROUP_V1, | ||
|
||
/** An invite response is needed for a V2 group */ | ||
GROUP_V2_INVITE, | ||
|
||
/** A message request is needed for a V2 group */ | ||
GROUP_V2_ADD, | ||
|
||
/** A message request is needed for an individual */ | ||
INDIVIDUAL | ||
} |
Oops, something went wrong.