Skip to content

Commit eda0969

Browse files
committed
fix: enum value 0 is left undefined
1 parent ba937e7 commit eda0969

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

proto/session.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ message InviteRequest {
6767
// Identifies different kinds of session events
6868
enum SessionEventKind {
6969
// Event that occurs when you get invited to a workspace.
70-
InvitationEvent = 0;
70+
InvitationEvent = 1;
7171
// Event that occurs when a user quits a workspace.
72-
QuitEvent = 1;
72+
QuitEvent = 2;
7373
// Event that occurs when an user accepts an invite to a workspace you are in.
74-
AcceptEvent = 2;
74+
AcceptEvent = 3;
7575
// Event that occurs when an user rejects an invite.
76-
RejectEvent = 3;
76+
RejectEvent = 4;
7777
}
7878

7979
// A message representing a session event.

proto/workspace.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ message UserList {
3838
// Identifies different kind of workspace events
3939
enum WorkspaceEventKind {
4040
// Event that occurs when a user joins a workspace.
41-
UserJoinWorkspace = 0;
41+
UserJoinWorkspace = 1;
4242
// Event that occurs when a user leaves a workspace.
43-
UserLeaveWorkspace = 1;
43+
UserLeaveWorkspace = 2;
4444
// Event that occurs when a file is created in a workspace.
45-
FileCreate = 2;
45+
FileCreate = 3;
4646
// Event that occurs when a file is renamed in a workspace.
47-
FileRename = 3;
47+
FileRename = 4;
4848
// Event that occurs when a file is deleted in a workspace.
49-
FileDelete = 4;
49+
FileDelete = 5;
5050
// Event that occurs when a user joins a buffer.
51-
UserJoinBuffer = 5;
51+
UserJoinBuffer = 6;
5252
// Event that occurs when a user leaves a buffer.
53-
UserLeaveBuffer = 6;
53+
UserLeaveBuffer = 7;
5454
}
5555

5656
// A message representing a workspace event.

0 commit comments

Comments
 (0)