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

Archiving #647

Open rdfarber opened 8 years ago

rdfarber commented 8 years ago

I am wondering how to access an archived room. Is there also a way to enable and disable logging? Or have logs expire?

mmeinert commented 8 years ago

The only way I found is to changed the MongoDB rooms "table" value.

xxxxxxxxxxxxxxxxxxxx Date Hour GMT
{
    _id: ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx"),
    owner: ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx"),
    name: "Room name",
    slug: "Room_slug",
    description: "",
    password: "",
    "private": false,
    lastActive: ISODate("Date"),
    created: ISODate("Date"),
    messages: [],
    participants: [],
    archived: true,
    __v: 0
}

If you change this room to have archived: false, the room will come back.