mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-23 07:24:35 +00:00
Don't attempt jingle file transfers in MUCs
This commit is contained in:
parent
2811eaf7c5
commit
8f0fe37402
2 changed files with 5 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue