This won't work with the current API (with expiryDate a `Date` object). You need a `new Date(+message.expiryDate)`. (I don't care about the minor performance issue this is bringing, because this is only for the old API)