Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Improved comments on the new chat-timeline-user feature. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c3ed2430cc568cc22dd6175a2f015b01 |
| User & Date: | drh 2022-09-15 15:51:04.699 |
Context
|
2022-09-15
| ||
| 16:58 | Added lmtime value to chat-timeline-user's chat messages, using the server's local time, to fix time display in the /chat message popup. check-in: e1ad499265 user: stephan tags: trunk | |
| 15:51 | Improved comments on the new chat-timeline-user feature. check-in: c3ed2430cc user: drh tags: trunk | |
| 15:35 | Improved chat messages for the chat-timeline-robot. check-in: 974cf3667c user: drh tags: trunk | |
Changes
Changes to src/alerts.c.
| ︙ | ︙ | |||
140 141 142 143 144 145 146 |
db_multi_exec(
"ALTER TABLE repository.pending_alert"
" ADD COLUMN sentMod BOOLEAN DEFAULT false;"
);
}
/*
| | | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
db_multi_exec(
"ALTER TABLE repository.pending_alert"
" ADD COLUMN sentMod BOOLEAN DEFAULT false;"
);
}
/*
** Process deferred alert events. Return the number of errors.
*/
static int alert_process_deferred_triggers(void){
if( db_table_exists("temp","deferred_chat_events")
&& db_table_exists("repository","chat")
){
const char *zChatUser = db_get("chat-timeline-user", 0);
if( zChatUser && zChatUser[0] ){
|
| ︙ | ︙ | |||
183 184 185 186 187 188 189 |
}
if( db_table_exists("repository","chat")
&& db_get("chat-timeline-user", "")[0]!=0
){
/* Record events that will be relayed to chat, but do not relay
** them immediately, as the chat_msg_from_event() function requires
** that TAGXREF be up-to-date, and that has not happened yet when
| | > > | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
}
if( db_table_exists("repository","chat")
&& db_get("chat-timeline-user", "")[0]!=0
){
/* Record events that will be relayed to chat, but do not relay
** them immediately, as the chat_msg_from_event() function requires
** that TAGXREF be up-to-date, and that has not happened yet when
** the insert into the EVENT table occurs. Make arrangements to
** invoke alert_process_deferred_triggers() when the transaction
** commits. The TAGXREF table will be ready by then. */
db_multi_exec(
"CREATE TABLE temp.deferred_chat_events(\n"
" type TEXT,\n"
" objid INT,\n"
" user TEXT,\n"
" comment TEXT\n"
");\n"
|
| ︙ | ︙ |
Changes to src/setup.c.
| ︙ | ︙ | |||
1354 1355 1356 1357 1358 1359 1360 |
@ should be larger rather than smaller.
@ (Property: "chat-poll-timeout")</p>
@ <hr />
entry_attribute("Chat Timeline Robot Username", 15,
"chat-timeline-user", "chatrobot", "", 0);
@ <p>If this setting is not an empty string, then any changes that appear
@ on the timeline are announced in the chatroom under the username
| | > | 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 |
@ should be larger rather than smaller.
@ (Property: "chat-poll-timeout")</p>
@ <hr />
entry_attribute("Chat Timeline Robot Username", 15,
"chat-timeline-user", "chatrobot", "", 0);
@ <p>If this setting is not an empty string, then any changes that appear
@ on the timeline are announced in the chatroom under the username
@ supplied. The username does not need to actually exist in the USER table.
@ Suggested username: "chat-robot".
@ (Property: "chat-timeline-user")</p>
@ <hr />
multiple_choice_attribute("Alert sound",
"chat-alert-sound", "snd", azAlerts[0],
count(azAlerts)/2, azAlerts);
@ <p>The sound used in the client-side chat to indicate that a new
|
| ︙ | ︙ |