diff options
author | Thomas Ross <thomasross@thomasross.io> | 2019-05-03 06:41:12 +0300 |
---|---|---|
committer | Thomas Ross <thomasross@thomasross.io> | 2019-05-03 06:41:12 +0300 |
commit | 38a99606cf9ad15d987707d27a63e6eb73ea4820 (patch) | |
tree | 59ba84abbf4e9365687f61b830d590d32aed5406 /src/murmur/MurmurGRPCImpl.cpp | |
parent | 0f39a12291400d6067a3ee7710b0fd28ed28779a (diff) |
Set temporary, position, and description in GRPC ChannelAdd
Diffstat (limited to 'src/murmur/MurmurGRPCImpl.cpp')
-rw-r--r-- | src/murmur/MurmurGRPCImpl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/murmur/MurmurGRPCImpl.cpp b/src/murmur/MurmurGRPCImpl.cpp index 3173deb66..afd349ae6 100644 --- a/src/murmur/MurmurGRPCImpl.cpp +++ b/src/murmur/MurmurGRPCImpl.cpp @@ -1506,9 +1506,11 @@ void V1_ChannelAdd::impl(bool) { { QWriteLocker wl(&server->qrwlVoiceThread); - nc = server->addChannel(parent, qsName); + nc = server->addChannel(parent, qsName, request.temporary(), request.position()); } + nc->qsDesc = u8(request.description()); + server->updateChannel(nc); int newid = nc->iId; @@ -1516,6 +1518,9 @@ void V1_ChannelAdd::impl(bool) { mpcs.set_channel_id(newid); mpcs.set_parent(parent->iId); mpcs.set_name(request.name()); + mpcs.set_temporary(request.temporary()); + mpcs.set_position(request.position()); + mpcs.set_description(request.description()); server->sendAll(mpcs); ::MurmurRPC::Channel resChannel; |