Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
var g_ChatHistoryFilters = [ | var g_ChatHistoryFilters = [ | ||||
{ | { | ||||
"key": "all", | "key": "all", | ||||
"text": translateWithContext("chat history filter", "Chat and notifications"), | "text": translateWithContext("chat history filter", "Chat and notifications"), | ||||
"filter": (msg, senderID) => true | "filter": (msg, senderID) => true | ||||
}, | }, | ||||
{ | { | ||||
"key": "notifications", | |||||
"text": translateWithContext("chat history filter", "Notifications"), | |||||
"filter": (msg, senderID) => msg.type != "message" | |||||
}, | |||||
{ | |||||
"key": "chat", | "key": "chat", | ||||
"text": translateWithContext("chat history filter", "Chat messages"), | "text": translateWithContext("chat history filter", "Chat messages"), | ||||
"filter": (msg, senderID) => msg.type == "message" | "filter": (msg, senderID) => msg.type == "message" | ||||
}, | }, | ||||
{ | { | ||||
"key": "player", | "key": "player", | ||||
"text": translateWithContext("chat history filter", "Players chat"), | "text": translateWithContext("chat history filter", "Players chat"), | ||||
"filter": (msg, senderID) => | "filter": (msg, senderID) => | ||||
▲ Show 20 Lines • Show All 1,068 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator