save bookmarks / annotations only for our account
This commit is contained in:
		
							parent
							
								
									5397f643bd
								
							
						
					
					
						commit
						f66a7c458c
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -1147,6 +1147,8 @@ ConnectionJingle, ConnectionIBBytestream):
 | 
				
			||||||
        self.dispatch('ERROR_ANSWER', (id_, jid_from, errmsg, errcode))
 | 
					        self.dispatch('ERROR_ANSWER', (id_, jid_from, errmsg, errcode))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _nec_private_storate_bookmarks_received(self, obj):
 | 
					    def _nec_private_storate_bookmarks_received(self, obj):
 | 
				
			||||||
 | 
					        if obj.conn.name != self.name:
 | 
				
			||||||
 | 
					            return
 | 
				
			||||||
        resend_to_pubsub = False
 | 
					        resend_to_pubsub = False
 | 
				
			||||||
        bm_jids = [b['jid'] for b in self.bookmarks]
 | 
					        bm_jids = [b['jid'] for b in self.bookmarks]
 | 
				
			||||||
        for bm in obj.bookmarks:
 | 
					        for bm in obj.bookmarks:
 | 
				
			||||||
| 
						 | 
					@ -1158,6 +1160,8 @@ ConnectionJingle, ConnectionIBBytestream):
 | 
				
			||||||
            self.store_bookmarks('pubsub')
 | 
					            self.store_bookmarks('pubsub')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _nec_private_storate_rosternotes_received(self, obj):
 | 
					    def _nec_private_storate_rosternotes_received(self, obj):
 | 
				
			||||||
 | 
					        if obj.conn.name != self.name:
 | 
				
			||||||
 | 
					            return
 | 
				
			||||||
        for jid in obj.annotations:
 | 
					        for jid in obj.annotations:
 | 
				
			||||||
            self.annotations[jid] = obj.annotations[jid]
 | 
					            self.annotations[jid] = obj.annotations[jid]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue