Update api for sample chat

tested on first iPad iOS 5.1.1 & iPhone 4S iOS 7.1.1