timwis / enviar

Chat interface for SMS / text messages
37 stars 6 forks source link

Doc IDs should not be random #14

Closed timwis closed 8 years ago

timwis commented 8 years ago

The same twilio message should always resolve to the same doc id so that if an update comes in (ie. status change) or a pagination request includes the same record (would this happen?) we can overwrite it.

timwis commented 8 years ago

Only client-generated messages are random now. Can't think of a way around that other than changing the _id after the server gets the id from twilio, which sounds messy.