| 91 | } |
| 92 | |
| 93 | void TeamClient::removeFromTeam(Uuid const& playerUuid) { |
| 94 | if (!m_teamUuid) |
| 95 | return; |
| 96 | if (!isTeamLeader() && playerUuid != m_clientContext->playerUuid()) |
| 97 | return; |
| 98 | JsonObject request; |
| 99 | request["teamUuid"] = m_teamUuid->hex(); |
| 100 | request["playerUuid"] = playerUuid.hex(); |
| 101 | invokeRemote("team.removeFromTeam", request, [this](Json) { forceUpdate(); }); |
| 102 | } |
| 103 | |
| 104 | bool TeamClient::hasInvitationPending() { |
| 105 | return m_hasPendingInvitation; |
no test coverage detected