Support Mod/Admin Notes Section (#5361)

This commit is contained in:
Zach H 2024-12-28 13:05:49 -05:00 committed by GitHub
parent 14807ba036
commit 1f58f7e93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 175 additions and 3 deletions

View file

@ -134,6 +134,7 @@ set(PROTO_FILES
response_viewlog_history.proto
response_warn_history.proto
response_warn_list.proto
response_get_admin_notes.proto
response.proto
room_commands.proto
room_event.proto

View file

@ -9,6 +9,8 @@ message ModeratorCommand {
VIEWLOG_HISTORY = 1005;
GRANT_REPLAY_ACCESS = 1006;
FORCE_ACTIVATE_USER = 1007;
GET_ADMIN_NOTES = 1008;
UPDATE_ADMIN_NOTES = 1009;
}
extensions 100 to max;
}
@ -88,4 +90,19 @@ message Command_ForceActivateUser {
}
optional string username_to_activate = 1;
optional string moderator_name = 2;
}
}
message Command_GetAdminNotes {
extend ModeratorCommand {
optional Command_GetAdminNotes ext = 1008;
}
optional string user_name = 1;
}
message Command_UpdateAdminNotes {
extend ModeratorCommand {
optional Command_UpdateAdminNotes ext = 1009;
}
optional string user_name = 1;
optional string notes = 2;
}

View file

@ -62,6 +62,7 @@ message Response {
VIEW_LOG = 1015;
FORGOT_PASSWORD_REQUEST = 1016;
PASSWORD_SALT = 1017;
GET_ADMIN_NOTES = 1018;
REPLAY_LIST = 1100;
REPLAY_DOWNLOAD = 1101;
}

View file

@ -0,0 +1,10 @@
syntax = "proto2";
import "response.proto";
message Response_GetAdminNotes {
extend Response {
optional Response_GetAdminNotes ext = 1018;
}
optional string user_name = 1;
optional string notes = 2;
}