MUC: Add voice request

closes https://github.com/profanity-im/profanity/issues/1211
This commit is contained in:
Thorben Günther
2021-03-12 12:55:19 +01:00
parent dbd8657759
commit ec6f9df486
8 changed files with 92 additions and 3 deletions

View File

@@ -1560,3 +1560,15 @@ _openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const to, const char* const text
return signcrypt;
}
#endif // HAVE_LIBGPGME
void
message_request_voice(const char* const roomjid)
{
xmpp_ctx_t* const ctx = connection_get_ctx();
xmpp_stanza_t* stanza = stanza_request_voice(ctx, roomjid);
log_debug("Requesting voice in %s", roomjid);
_send_message_stanza(stanza);
xmpp_stanza_release(stanza);
}