-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to dedicated event names per event
Added Enum for Event names Added new event names Updated current duplicate event names to be unique
- Loading branch information
Alex Risch
authored and
Alex Risch
committed
Feb 23, 2024
1 parent
ea710dc
commit a59ad07
Showing
6 changed files
with
84 additions
and
17 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
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,40 @@ | ||
export enum EventTypes { | ||
// Auth | ||
Sign = 'sign', | ||
Authed = 'authed', | ||
PreCreateIdentityCallback = 'preCreateIdentityCallback', | ||
PreEnableIdentityCallback = 'preEnableIdentityCallback', | ||
// Conversations Events | ||
/** | ||
* Current user is in a newly created conversation | ||
*/ | ||
Conversation = 'conversation', | ||
/** | ||
* Current user is in a newly created group | ||
*/ | ||
Group = 'group', | ||
/** | ||
* Current user is in a newly created group or conversation | ||
*/ | ||
ConversationContainer = 'conversationContainer', | ||
/** | ||
* Current user receives a new message in any conversation | ||
*/ | ||
Message = 'message', | ||
/** | ||
* Current user receives a new message in any group | ||
* Current limitation, only groups created before listener is added will be received | ||
*/ | ||
AllGroupMessage = 'allGroupMessage', | ||
|
||
// Conversation Events | ||
/** | ||
* A new message is sent to a specific conversation | ||
*/ | ||
ConversationMessage = 'conversationMessage', | ||
// Group Events | ||
/** | ||
* A new message is sent to a specific group | ||
*/ | ||
GroupMessage = 'groupMessage', | ||
} |