Closed arifhossen-dev closed 2 years ago
- How can a user search all users (including new fresh users) for conversations?
The search feature uses the messengers
table, which requires you to implement creating my Messenger
model upon your new user creation. Please see my docs on the matter for how/when to make/attach messenger models to your providers.
- How can users add participants in a group without being friends?
Firstly, you can generate group thread invites and send the invite to anyone you want to join the group (similar to discord invites).
Second, to be able to add non-friends to the group directly, you can disable the friendship checks via the config MESSENGER_VERIFY_GROUP_THREAD_FRIENDSHIP
.
The one caveat when disabling group thread friendship checks is that my optional messenger-ui
UI, you can only "view" friends to add via the popup modal. If you want to be able to view all users and pick who to add to a group, you will have to build that UI / API integration yourself, as the current included endpoint ( Add participants ) filters out current group participants against your friends list. However, if you build the UI yourself, the ( Store Participants ) endpoint will accept any valid provider alias/ID combo.
Messenger v2 is still a ways out, but I am planning to give more control over these options, but that also includes me making a brand new optional UI (will be in react).
1. How can a user search all users (including new fresh users) for conversations?
In the users table
Getting only logged in user
I want to get search results from all new users. Logged in or not.
in user model
Implements
Using traite
Setting method
Searchable method
2. How can users add participants in a group without being friends?
I am using
BIGINT
id in the users table