FIX: fixed message class to that only one any message can be stored; deleted track class
This commit is contained in:
@@ -61,8 +61,8 @@ add_library(whisper-com STATIC
|
||||
src/WHISPER/Messages/Leave.cpp
|
||||
|
||||
|
||||
include/WHISPER/Messages/Track.hpp
|
||||
src/WHISPER/Messages/Track.cpp
|
||||
# include/WHISPER/Messages/Track.hpp
|
||||
# src/WHISPER/Messages/Track.cpp
|
||||
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ add_library(whisper-com STATIC
|
||||
include/WHISPER/Messages/Protos/join.pb.cc
|
||||
|
||||
include/WHISPER/Messages/Protos/leave.pb.cc
|
||||
include/WHISPER/Messages/Protos/raw_track.pb.cc
|
||||
# include/WHISPER/Messages/Protos/raw_track.pb.cc
|
||||
|
||||
|
||||
)
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace WHISPER {
|
||||
void Message::addPayLoad(std::shared_ptr<google::protobuf::Any> payload){
|
||||
payload_ = payload;
|
||||
|
||||
msg.clear_payload();
|
||||
msg.add_payload()->CopyFrom(*payload_);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user