Chat history but in SQLite#166
Conversation
- into sqlite - includes colors (an attempt with opencode big pickle with some manual testing and sanity checking)
| if richtext.HistoryName then | ||
| richtext._Segments = {} | ||
| end | ||
| local segs = richtext._Segments |
|
@Python1320 do you save steamid information? What about player information in general, like what happens if I click on someone's name in the history, do the correct menus show up? |
|
Additionally one of the features of the current history was that it was easily accessible/readable in the data folder, i think if we're using sqlite, there should at least be a way to see your histories somewhere in settings and/or to export them as .txt |
|
TLDR of below: Same functionality as before: Only colors and text are stored. for PMs steamid is still stored in the other table. No links are stored, though they could be with the extensible json format. I thought the whole history thing was work in progress as I was always getting garbled data. Maybe it is just the legacy richtext 🤔 I couldn't validate the old because it didn't work for me (I suspect it is because easychat is opening the file for reading and writing at the same time). As far as I understood the richtext history code, it doesn't store clickable links, etc either and we just relied on the text having steamids instead of links containing the metadata. SQlite: Next idea for another PR related to this so I don't forget what triggered staring at the code to begin with: chacha20+maybe poly encrypted per-server PMs/conversations so other servers cannot read them (clients receive decryption key from servers, "unique" per client, not sure if we can do better without binary modules). |
Unfortunately coded with Opencode Big Pickle as an experiment so I will still need to comb through everything and squash the loading problem, but it works:
Tables:
Concerns:
Future: