Don't attempt jingle file transfers in MUCs

This commit is contained in:
fiaxh 2019-11-13 16:41:42 +01:00
parent 2811eaf7c5
commit 8f0fe37402
2 changed files with 5 additions and 0 deletions

View file

@ -196,6 +196,8 @@ public class ChatInteraction : StreamInteractionModule, Object {
XmppStream? stream = stream_interactor.get_stream(conversation.account);
if (stream == null) return;
if (message.stanza_id != null) return; // Need a stanza id to mark
switch (marker) {
case Xep.ChatMarkers.MARKER_RECEIVED:
if (stanza != null && Xep.ChatMarkers.Module.requests_marking(stanza)) {

View file

@ -163,6 +163,9 @@ public class JingleFileSender : FileSender, Object {
}
public bool can_send(Conversation conversation, FileTransfer file_transfer) {
if (conversation.type_ == Conversation.Type.GROUPCHAT) return false;
// No file specific restrictions apply to Jingle file transfers
return is_upload_available(conversation);
}