a2185fefc1
If we somehow end up in a situation where calling /messages returns a load of messages, but none of them are new, then currently we start calling /messages again and again in a tight loop. This is bad, so fix it.