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:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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 = "");
|
||||
|
||||
Reference in New Issue
Block a user