Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

get Chat group - shows everyone not just one 'logged in user' is in

$
0
0

Hi, I cant seem to get this working and couldnt find any examples online(not yet, after 3 hours)..

I have a table view where I want to put the list of 'conversations' my logged in user in involved in. But it is showing everyone's conversation,

I think I need some help in 'where' query part.

Any help would be SOOO great!

BTW, the 'user' is the variable for user logged in. (should i do user id? or email?)

Cloud.Chats.getChatGroups({
        where : {
            participate_users : { "$in" : user}
            }
    },
        function (e) {
        if (e.success) {
            if (e.chat_groups.length == 0) {
                    table.setData([
                        { title: 'No Results!' }
                    ]);
                }
            var tbl_data = []; 
            for (var i = 0; i < e.chat_groups.length; i++) {
                var group = e.chat_groups[i];

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>