Fossil SCM
The "fossil chat send" mechanism was broken by check-in [fc853823b2218a76] (chat history) because of changes to chat_create_tables(). This fixes the issue.
Commit
a913716b4c40cbbd37e6bcf83cf4e623e9b4597dd11d3ec00771b18520fc7edd
Parent
072a860909d297a…
1 file changed
+3
-1
+3
-1
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -422,11 +422,13 @@ | ||
| 422 | 422 | login_check_credentials(); |
| 423 | 423 | if( 0==g.perm.Chat ) { |
| 424 | 424 | chat_emit_permissions_error(0); |
| 425 | 425 | return; |
| 426 | 426 | } |
| 427 | - chat_create_tables(); | |
| 427 | + if( !db_table_exists("repository","chat") ){ | |
| 428 | + return; | |
| 429 | + } | |
| 428 | 430 | zUserName = (g.zLogin && g.zLogin[0]) ? g.zLogin : "nobody"; |
| 429 | 431 | nByte = atoi(PD("file:bytes","0")); |
| 430 | 432 | zMsg = PD("msg",""); |
| 431 | 433 | db_begin_write(); |
| 432 | 434 | db_unprotect(PROTECT_READONLY); |
| 433 | 435 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -422,11 +422,13 @@ | |
| 422 | login_check_credentials(); |
| 423 | if( 0==g.perm.Chat ) { |
| 424 | chat_emit_permissions_error(0); |
| 425 | return; |
| 426 | } |
| 427 | chat_create_tables(); |
| 428 | zUserName = (g.zLogin && g.zLogin[0]) ? g.zLogin : "nobody"; |
| 429 | nByte = atoi(PD("file:bytes","0")); |
| 430 | zMsg = PD("msg",""); |
| 431 | db_begin_write(); |
| 432 | db_unprotect(PROTECT_READONLY); |
| 433 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -422,11 +422,13 @@ | |
| 422 | login_check_credentials(); |
| 423 | if( 0==g.perm.Chat ) { |
| 424 | chat_emit_permissions_error(0); |
| 425 | return; |
| 426 | } |
| 427 | if( !db_table_exists("repository","chat") ){ |
| 428 | return; |
| 429 | } |
| 430 | zUserName = (g.zLogin && g.zLogin[0]) ? g.zLogin : "nobody"; |
| 431 | nByte = atoi(PD("file:bytes","0")); |
| 432 | zMsg = PD("msg",""); |
| 433 | db_begin_write(); |
| 434 | db_unprotect(PROTECT_READONLY); |
| 435 |