Fix offline → online not sending pending message
This commit is contained in:
		@@ -522,8 +522,10 @@ class MatrixClient(nio.AsyncClient):
 | 
				
			|||||||
            mentions = mentions,
 | 
					            mentions = mentions,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        presence = self.models["accounts"][self.user_id].presence
 | 
					        while (
 | 
				
			||||||
        while presence == Presence.State.offline:
 | 
					            self.models["accounts"][self.user_id].presence ==
 | 
				
			||||||
 | 
					            Presence.State.offline
 | 
				
			||||||
 | 
					        ):
 | 
				
			||||||
            await asyncio.sleep(0.2)
 | 
					            await asyncio.sleep(0.2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        await self._send_message(room_id, content, tx_id)
 | 
					        await self._send_message(room_id, content, tx_id)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user