add thread to zeroconf connections too
This commit is contained in:
		
							parent
							
								
									ec37a97ed6
								
							
						
					
					
						commit
						3bb2eabadb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -639,6 +639,7 @@ class ConnectionHandlersZeroconf(ConnectionVcard, ConnectionBytestream):
 | 
				
			||||||
		msghtml = msg.getXHTML()
 | 
							msghtml = msg.getXHTML()
 | 
				
			||||||
		mtype = msg.getType()
 | 
							mtype = msg.getType()
 | 
				
			||||||
		subject = msg.getSubject() # if not there, it's None
 | 
							subject = msg.getSubject() # if not there, it's None
 | 
				
			||||||
 | 
							thread = msg.getThread()
 | 
				
			||||||
		tim = msg.getTimestamp()
 | 
							tim = msg.getTimestamp()
 | 
				
			||||||
		tim = time.strptime(tim, '%Y%m%dT%H:%M:%S')
 | 
							tim = time.strptime(tim, '%Y%m%dT%H:%M:%S')
 | 
				
			||||||
		tim = time.localtime(timegm(tim))
 | 
							tim = time.localtime(timegm(tim))
 | 
				
			||||||
| 
						 | 
					@ -715,7 +716,7 @@ class ConnectionHandlersZeroconf(ConnectionVcard, ConnectionBytestream):
 | 
				
			||||||
				msg_id = gajim.logger.write('chat_msg_recv', frm, msgtxt, tim = tim,
 | 
									msg_id = gajim.logger.write('chat_msg_recv', frm, msgtxt, tim = tim,
 | 
				
			||||||
					subject = subject)
 | 
										subject = subject)
 | 
				
			||||||
			self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject,
 | 
								self.dispatch('MSG', (frm, msgtxt, tim, encrypted, mtype, subject,
 | 
				
			||||||
				chatstate, msg_id, composing_jep, user_nick, msghtml))
 | 
									chatstate, msg_id, composing_jep, user_nick, msghtml, thread))
 | 
				
			||||||
		elif mtype == 'normal': # it's single message
 | 
							elif mtype == 'normal': # it's single message
 | 
				
			||||||
			if self.name not in no_log_for and jid not in no_log_for and msgtxt:
 | 
								if self.name not in no_log_for and jid not in no_log_for and msgtxt:
 | 
				
			||||||
				gajim.logger.write('single_msg_recv', frm, msgtxt, tim = tim,
 | 
									gajim.logger.write('single_msg_recv', frm, msgtxt, tim = tim,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue