Chat-O-Matic/application/RoomFlags.h
Jaidyn Ann 7c9d1d9eaa Rework communication of room metadata, add room flags
In the API, a firm distinction between initially fetching a room's
metadata and receiving further changes has been made:
IM_ROOM_METADATA will be sent to Caya on request (IM_GET_ROOM_METADATA)
with the room's name, subject, etc. The other metadata-related messages
should only be sent to Caya after the room is initialized, not as a
means of initially setting its metadata.

Basic room flags were added, though they aren't yet used― they should
allow the protocol/add-on/user to configure some room features. Logging,
auto-joining, etc.
2021-06-13 01:16:30 -05:00

25 lines
522 B
C

/*
* Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ROOMFLAGS_H
#define ROOMFLAGS_H
#include <SupportDefs.h>
// AUTOJOIN, AUTOCREATE, LOG, POPULATE
// Auto-join on login, auto-create on login (non-persistent rooms), keep local
// logs, populate chat with local logs on join…
// JCLP
// 0000
#define ROOM_AUTOJOIN 1
#define ROOM_AUTOCREATE 2
#define ROOM_LOG_LOCALLY 4
#define ROOM_POPULATE_LOGS 8
#endif // ROOMFLAGS_H