mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
20 lines
349 B
JavaScript
20 lines
349 B
JavaScript
export const SERVER_BUFFER = "*";
|
|
|
|
export const Status = {
|
|
DISCONNECTED: "disconnected",
|
|
CONNECTING: "connecting",
|
|
REGISTERED: "registered",
|
|
};
|
|
|
|
export const Unread = {
|
|
NONE: "",
|
|
MESSAGE: "message",
|
|
|
|
union: (a, b) => {
|
|
const priority = {
|
|
[Unread.None]: 0,
|
|
[Unread.MESSAGE]: 1,
|
|
};
|
|
return (priority[a] > priority[b]) ? a : b;
|
|
},
|
|
};
|