refactor: Rename SendMessage to SendChatMessage for clarity

- Updated method name from SendMessage to SendChatMessage in both the implementation and header files to better reflect its purpose in the network collaboration context.
- Ensured consistency in method signatures across the codebase.
This commit is contained in:
scawful
2025-10-10 13:53:00 -04:00
parent 5cc650053d
commit fefd60da6e
2 changed files with 3 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ absl::Status NetworkCollaborationCoordinator::LeaveSession() {
return absl::OkStatus();
}
absl::Status NetworkCollaborationCoordinator::SendMessage(
absl::Status NetworkCollaborationCoordinator::SendChatMessage(
const std::string& sender, const std::string& message,
const std::string& message_type, const std::string& metadata) {
if (!in_session_) {
@@ -587,7 +587,7 @@ absl::Status NetworkCollaborationCoordinator::LeaveSession() {
return absl::UnimplementedError("Network collaboration requires JSON support");
}
absl::Status NetworkCollaborationCoordinator::SendMessage(
absl::Status NetworkCollaborationCoordinator::SendChatMessage(
const std::string&, const std::string&, const std::string&, const std::string&) {
return absl::UnimplementedError("Network collaboration requires JSON support");
}

View File

@@ -95,7 +95,7 @@ class NetworkCollaborationCoordinator {
absl::Status LeaveSession();
// Communication methods
absl::Status SendMessage(const std::string& sender,
absl::Status SendChatMessage(const std::string& sender,
const std::string& message,
const std::string& message_type = "chat",
const std::string& metadata = "");