Closed rrbrambley closed 10 years ago
New guess: display location is not populated on message when it gets deleted, so no display location instances are deleted. Perhaps relevant in the pending deletion case – the message is pulled from the DB right before deleting it, but the display location is not populated.
I confirmed that performing a full sync actually sets the location instance count back to the correct amount.
Should be fixed in 95027645dea8da2772754cb158ed209ce75cd1d1
For example, a DisplayLocationInstances may have two message ids for a location that only has one existing Message associated with it. My guess is that the display location instances are not properly being deleted when the unsent message is being deleted.