ability to send file to contacts without a resource (but still not to fake jid) Fixes #7077
This commit is contained in:
		
							parent
							
								
									afdd17bee3
								
							
						
					
					
						commit
						5e15386879
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -1723,7 +1723,8 @@ class ChatControl(ChatControlBase):
 | 
				
			||||||
        self._video_button.set_sensitive(self.video_available)
 | 
					        self._video_button.set_sensitive(self.video_available)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Send file
 | 
					        # Send file
 | 
				
			||||||
        if self.contact.supports(NS_FILE) and self.contact.resource:
 | 
					        if self.contact.supports(NS_FILE) and (self.type_id == 'chat' or \
 | 
				
			||||||
 | 
					        self.gc_contact.resource):
 | 
				
			||||||
            self._send_file_button.set_sensitive(True)
 | 
					            self._send_file_button.set_sensitive(True)
 | 
				
			||||||
            self._send_file_button.set_tooltip_text('')
 | 
					            self._send_file_button.set_tooltip_text('')
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
| 
						 | 
					@ -1733,8 +1734,8 @@ class ChatControl(ChatControlBase):
 | 
				
			||||||
                    "This contact does not support file transfer."))
 | 
					                    "This contact does not support file transfer."))
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                self._send_file_button.set_tooltip_text(
 | 
					                self._send_file_button.set_tooltip_text(
 | 
				
			||||||
                        _("You need to know the real JID of the contact to send him or "
 | 
					                    _("You need to know the real JID of the contact to send "
 | 
				
			||||||
                        "her a file."))
 | 
					                    "him or her a file."))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Convert to GC
 | 
					        # Convert to GC
 | 
				
			||||||
        if self.contact.supports(NS_MUC):
 | 
					        if self.contact.supports(NS_MUC):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue