Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Changing group chat title causes orphan logs #15

Closed
PabloCastellano opened this issue Nov 20, 2014 · 3 comments
Closed

Changing group chat title causes orphan logs #15

PabloCastellano opened this issue Nov 20, 2014 · 3 comments
Labels

Comments

@PabloCastellano
Copy link

While individual chat logs are written to:
~/.purple/logs/telegram/"MY_CELL_NUMBER"/"ID"/.txt,
group chat logs are written:
~/.purple/logs/telegram/"MY_CELL_NUMBER"/"GROUP_TITLE"/
.txt

Changing the group chat title doesn't rename the folder, so the old title logs remain unlinked to any chat.
The solution is not as easy as renaming the folder when the title changes as two group chats with the same title share the same folder and it would mess it up even more. Maybe using an uuid or using group title + uuid as folder?

@majn majn added the bug label Jan 20, 2015
@franciscod
Copy link

I think the directory name being an UUID makes sense.

Because this name isn't really meaningful to a human looking for its chats, there should be a way for mapping names to UUIDS. Maybe a text file containing current and old names is useful, something along these lines:

### Current group UUIDs
uuid                | current name
------------------- | ------------
ADJIOIJWQEASKD-1231 | School Buddies
IQWOPEIEWQOPDA-6666 | Next meetup: 04-04!

### Old names
uuid                | old name
------------------- | --------
IQWOPEIEWQOPDA-6666 | Next meetup: 03-03, woohoo!

bonus: the same text file rendered as github's markdown:

Current group UUIDs

uuid current name
ADJIOIJWQEASKD-1231 School Buddies
IQWOPEIEWQOPDA-6666 Next meetup: 04-04!

Old names

uuid old name
IQWOPEIEWQOPDA-6666 Next meetup: 03-03, woohoo!

@majn
Copy link
Owner

majn commented Feb 4, 2015

@franciscod Telegram already assigns unique IDs to all chats, and I use those as a chat id in libpurple and the chat name as subject.

I think its because Libpurple will always use the displayed conversation name to store chat logs. The only fix I can think of at the moment would be to just not update the chat names after adding them for the first time.

@majn
Copy link
Owner

majn commented Nov 13, 2015

The only fix I can think of at the moment would be to just not update the chat names after adding them for the first time.

This is how I do it now, btw.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants