robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

XMPPRoomMemoryStorage - Fails to update presence of XMPPRoomOccupantMemoryStorageObject, when the occupant leaves the chat room #510

Open nageshrudrappa opened 9 years ago

nageshrudrappa commented 9 years ago

In the method mentioned below, the presence of XMPPRoomOccupantMemoryStorageObject is not updated when the occupant leaves the chat room (i,e when the presence type is "unavailable")

Class: XMPPRoomMemoryStorage.m Method: - (void)handlePresence:(XMPPPresence )presence room:(XMPPRoom )room { }

Added the missing line to update the occupant presence within the updated method //**_Missing Line_* [occupant updateWithPresence:presence]; //**_Missing Line_*

Updated method: ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

pragma mark XMPPRoomStorage Protocol

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Please let me know if the update is valid or not.

nageshrudrappa commented 9 years ago

Need help.