Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1592] ACS - Cloud.Chats.getChatGroups gets All ChatGroups on ACS Server

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-08-15T16:28:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
LabelsTCSupportTriage, qe-3.3.0
ReporterJoseph Sachs
AssigneeMauro Parra-Miranda
Created2014-08-01T03:39:29.000+0000
Updated2016-03-08T07:38:04.000+0000

Description

Cloud.Chats.getChatGroups(function (e) {
    if (e.success) {
        for (var i = 0; i < e.chat_groups.length; i++) {
            var group = e.chat_groups[i];
            alert('Success:\n' +
                'id: ' + group.id + '\n' +
                'created_at: ' + group.created_at + '\n' +
                'number of users: ' + group.participate_users.length);
        }
    } else {
        alert('Error:\n' +
            ((e.error && e.message) || JSON.stringify(e)));
    }
});
Returns All Chat Groups on ACS (even the ones the Current User is not Involved in). The Documentation states: "This example requests a lists of chat groups *that the current user belongs to* and checks the response." Also a Q&A thread was open a month ago concerning this: http://developer.appcelerator.com/question/157777/acs---get-chat-groups-permissions-bug

Comments

  1. Joseph Sachs 2014-08-08

    There are two open Q&As that refer to this as well: http://developer.appcelerator.com/question/157777/acs---get-chat-groups-permissions-bug http://developer.appcelerator.com/question/175963/get-chat-group---shows-everyone-not-just-one-logged-in-user-is-in
  2. Joseph Sachs 2014-08-15

    You can Close this Ticket. Wei has fixed the issue :)
  3. Mauro Parra-Miranda 2014-08-15

    Fixed by the Cloud team.

JSON Source