2020-03-20 14:38:20 -06:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-03-20 14:38:20 -06:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-03-20 14:38:20 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export enum DefaultTagID {
|
|
|
|
|
Invite = "im.vector.fake.invite",
|
|
|
|
|
Untagged = "im.vector.fake.recent", // legacy: used to just be 'recent rooms' but now it's all untagged rooms
|
|
|
|
|
Archived = "im.vector.fake.archived",
|
|
|
|
|
LowPriority = "m.lowpriority",
|
|
|
|
|
Favourite = "m.favourite",
|
|
|
|
|
DM = "im.vector.fake.direct",
|
2024-03-25 19:35:31 +01:00
|
|
|
Conference = "im.vector.fake.conferences",
|
2020-03-20 14:38:20 -06:00
|
|
|
ServerNotice = "m.server_notice",
|
2021-03-08 15:52:21 +00:00
|
|
|
Suggested = "im.vector.fake.suggested",
|
2020-03-20 14:38:20 -06:00
|
|
|
}
|
2020-05-11 16:12:45 -06:00
|
|
|
|
2020-03-20 14:38:20 -06:00
|
|
|
export const OrderedDefaultTagIDs = [
|
|
|
|
|
DefaultTagID.Invite,
|
|
|
|
|
DefaultTagID.Favourite,
|
|
|
|
|
DefaultTagID.DM,
|
2024-03-25 19:35:31 +01:00
|
|
|
DefaultTagID.Conference,
|
2020-03-20 14:38:20 -06:00
|
|
|
DefaultTagID.Untagged,
|
|
|
|
|
DefaultTagID.LowPriority,
|
|
|
|
|
DefaultTagID.ServerNotice,
|
2021-03-08 15:52:21 +00:00
|
|
|
DefaultTagID.Suggested,
|
2020-03-20 14:38:20 -06:00
|
|
|
DefaultTagID.Archived,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export type TagID = string | DefaultTagID;
|
2020-05-04 09:06:34 -06:00
|
|
|
|
|
|
|
|
export enum RoomUpdateCause {
|
|
|
|
|
Timeline = "TIMELINE",
|
2020-06-05 20:12:32 -06:00
|
|
|
PossibleTagChange = "POSSIBLE_TAG_CHANGE",
|
2023-05-05 13:53:26 +12:00
|
|
|
PossibleMuteChange = "POSSIBLE_MUTE_CHANGE",
|
2020-06-05 20:12:32 -06:00
|
|
|
ReadReceipt = "READ_RECEIPT",
|
2020-05-29 07:59:06 -06:00
|
|
|
NewRoom = "NEW_ROOM",
|
2020-06-05 18:44:05 -06:00
|
|
|
RoomRemoved = "ROOM_REMOVED",
|
2020-05-04 09:06:34 -06:00
|
|
|
}
|