Giter VIP home page Giter VIP logo

Comments (5)

iamuseless avatar iamuseless commented on August 20, 2024 1

Hey thanks, I'm new to android studio but I'll try.

from chat-sdk-android.

kykrueger avatar kykrueger commented on August 20, 2024

Hello,

Please check if the chats you had created were private or public chats. If they were made in the second tab of the demo app they will be public chats ( available to all users, new and old; these are supposed to be like chat rooms ).

-- Kyle

from chat-sdk-android.

iamuseless avatar iamuseless commented on August 20, 2024

@kykrueger Hey thanks and if I want to remove a user from private or public chat then how should I do it?

from chat-sdk-android.

kykrueger avatar kykrueger commented on August 20, 2024

The current version of the SDK does not support removing users from a chat. However, removing uses from a private chat is being implemented on a coming version. As for removing users from a public chat, this is not something we plan on making possible. The public chats are inherently open to all users.

If you would like to implement removing a user from a chat, I would recommend adding a new click mode to ChatSDKAbstractContactsFragment. In this click mode I would try adding a new dialog to ask the user if they want to delete the user. You could even do this on a long press if it suits your taste better.

To delete a user from a thread, the method you should then call is removeUsersFromThread(BThread thread, List<BUser> users); from the networkAdapter.

Then, update click mode that is set before opening this fragment in thread details activity.

-- Kyle

from chat-sdk-android.

kykrueger avatar kykrueger commented on August 20, 2024

Working on a project that has been developed by various developers can be priceless learning experience. If you encounter things that don't make sense in the back-end feel free to re-open this issue to clarify.

Also, I would recommend finding some good blogs for android development (quite a few posts here), and doing some tutorials. However, keep in mind that there are many different ways of doing things when it comes to development, and there are often conflicting ideas in the community. So keep an open mind.

All the best!
-- Kyle

from chat-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.