| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -155,10 +155,12 @@ public final class LokiPublicChatPoller : NSObject {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                guard let messageID = message.uniqueId else { return print("[Loki] Failed to save public chat message.") }
 | 
					 | 
					 | 
					 | 
					                guard let messageID = message.uniqueId else { return print("[Loki] Failed to save public chat message.") }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                storage.setIDForMessageWithServerID(UInt(messageServerID), to: messageID, in: transaction)
 | 
					 | 
					 | 
					 | 
					                storage.setIDForMessageWithServerID(UInt(messageServerID), to: messageID, in: transaction)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            DispatchQueue.main.async {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if let linkPreviewURL = OWSLinkPreview.previewUrl(forMessageBodyText: message.body, selectedRange: nil) {
 | 
					 | 
					 | 
					 | 
					                if let linkPreviewURL = OWSLinkPreview.previewUrl(forMessageBodyText: message.body, selectedRange: nil) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    message.generateLinkPreviewIfNeeded(fromURL: linkPreviewURL)
 | 
					 | 
					 | 
					 | 
					                    message.generateLinkPreviewIfNeeded(fromURL: linkPreviewURL)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                }
 | 
					 | 
					 | 
					 | 
					                }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }
 | 
					 | 
					 | 
					 | 
					            }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        // Poll
 | 
					 | 
					 | 
					 | 
					        // Poll
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        let _ = LokiPublicChatAPI.getMessages(for: publicChat.channel, on: publicChat.server).done(on: DispatchQueue.global()) { messages in
 | 
					 | 
					 | 
					 | 
					        let _ = LokiPublicChatAPI.getMessages(for: publicChat.channel, on: publicChat.server).done(on: DispatchQueue.global()) { messages in
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            func proceed() {
 | 
					 | 
					 | 
					 | 
					            func proceed() {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |