Messages file, as well as contact's chat folder are now created on the go if they do not exist. Messages file is updated (deleted and re-uploaded) if it already existed; and Read-only permission is granted to contact over the messages file.
Right now the json file just contains the output of the serialize() method from the Message object, so it should be changed to contain the full list of user's messages.
Also, Travis seems to be unable to recognize the replace() string method, so the build fails. No idea how to solve that.
Messages file, as well as contact's chat folder are now created on the go if they do not exist. Messages file is updated (deleted and re-uploaded) if it already existed; and Read-only permission is granted to contact over the messages file.
Right now the json file just contains the output of the serialize() method from the Message object, so it should be changed to contain the full list of user's messages.
Also, Travis seems to be unable to recognize the replace() string method, so the build fails. No idea how to solve that.