Skip to content
Permalink
Browse files

Merge PR #3684: Set temporary, position, and description in GRPC Chan…

…nelAdd
  • Loading branch information...
davidebeatrici committed May 3, 2019
2 parents 0f39a12 + 38a9960 commit 0e71f7995c363d651f95c54bc742560bd978a69a
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/murmur/MurmurGRPCImpl.cpp
@@ -1506,16 +1506,21 @@ 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;

::MumbleProto::ChannelState mpcs;
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;

0 comments on commit 0e71f79

Please sign in to comment.
You can’t perform that action at this time.