fixed behaviour in message parser when doing mam catchup
This commit is contained in:
		
							parent
							
								
									bb249e0881
								
							
						
					
					
						commit
						c7e95d105c
					
				| @ -539,7 +539,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece | |||||||
| 				query.incrementActualMessageCount(); | 				query.incrementActualMessageCount(); | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			if (query == null || !query.isCatchup()) { //either no mam or catchup | 			if (query == null || query.isCatchup()) { //either no mam or catchup | ||||||
| 				if (status == Message.STATUS_SEND || status == Message.STATUS_SEND_RECEIVED) { | 				if (status == Message.STATUS_SEND || status == Message.STATUS_SEND_RECEIVED) { | ||||||
| 					mXmppConnectionService.markRead(conversation); | 					mXmppConnectionService.markRead(conversation); | ||||||
| 					if (query == null) { | 					if (query == null) { | ||||||
| @ -581,7 +581,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece | |||||||
| 			} else if (notify) { | 			} else if (notify) { | ||||||
| 				if (query == null) { | 				if (query == null) { | ||||||
| 					mXmppConnectionService.getNotificationService().push(message); | 					mXmppConnectionService.getNotificationService().push(message); | ||||||
| 				} else if (query.getWith() == null) { // mam catchup | 				} else if (query.isCatchup()) { // mam catchup | ||||||
| 					mXmppConnectionService.getNotificationService().pushFromBacklog(message); | 					mXmppConnectionService.getNotificationService().pushFromBacklog(message); | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch