sdelements / lets-chat

Self-hosted chat app for small teams
http://sdelements.github.io/lets-chat
MIT License
9.77k stars 1.58k forks source link

How to 1-to-1 chat working? #639

Open vishant-dhandha opened 8 years ago

vishant-dhandha commented 8 years ago

I am trying to make 1-to-1 chat working on my local machine.. I have tried this in my settings.yml file..

xmpp:
  enable: true
  roomCreation: true
  debug:
    handled: true
    unhandled: true
  port: 5222
  domain: 127.0.0.1
  tls:
    enable: false
    key: ./server.key
    cert: ./server.crt

I have tried installing ejabberd and made these change to ejabberd.cnf file..

%% Admin user
{acl, admin, {user, "vishant", "localhost"}}.

%% Hostname
{hosts, ["localhost"]}.

Still i am not able to make 1 to 1 chat OR private chat.. Any further changes i have to make for this??

hhaidar commented 8 years ago

Do you mind trying Pidgin or Adium first (just to make sure the server is working correctly)?

napoleonit76 commented 8 years ago

Hi @hhaidar As I understand, supporting 1-1 chat means Lets-chat will play as an XMPP server, and we have to use other XMPP clients to connect to it and do chatting? Or do we have any way for Lets-Chat users to chat to each other 1-1 inside the apps?

itsyogesh commented 8 years ago

Hi @vishant-dhandha @napoleonit76

I am able to make this work. Although I just edited the defaults.yml file, you can add this to the settings.yml file:

private:
  enable: true
  roster: all # online / all
  expire: 360 # false or number of minutes

Roster management was difficult, the wiki page on the 1-to-1 chat does explain how to setup, but not the roster part. I ended up setting roster to all, but you can choose to not allow everyone to connect to each other and have some sort of authorisation in place (if lets-chat supports that).

jmvallejo commented 7 years ago

Thanks @itsyogesh I got it working with the config you posted :)