move irc/telegram data under channels/
IRC logs → channels/irc.logs/ Telegram logs + offset → channels/telegram.logs/ Channel data now lives with channel infrastructure. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8c1fef3c69
commit
6d1411f2a1
2 changed files with 2 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ impl State {
|
||||||
// ── Persistence ────────────────────────────────────────────────
|
// ── Persistence ────────────────────────────────────────────────
|
||||||
|
|
||||||
fn data_dir() -> PathBuf {
|
fn data_dir() -> PathBuf {
|
||||||
dirs::home_dir().unwrap_or_default().join(".consciousness/irc")
|
dirs::home_dir().unwrap_or_default().join(".consciousness/channels/irc.logs")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn append_log(target: &str, nick: &str, text: &str) {
|
fn append_log(target: &str, nick: &str, text: &str) {
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ impl State {
|
||||||
// ── Persistence ─────────────────────────────────────────────────
|
// ── Persistence ─────────────────────────────────────────────────
|
||||||
|
|
||||||
fn data_dir() -> PathBuf {
|
fn data_dir() -> PathBuf {
|
||||||
dirs::home_dir().unwrap_or_default().join(".consciousness/telegram")
|
dirs::home_dir().unwrap_or_default().join(".consciousness/channels/telegram.logs")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn load_offset() -> i64 {
|
fn load_offset() -> i64 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue