Skip to content

Instantly share code, notes, and snippets.

@errzey
Created September 11, 2013 16:43
Show Gist options
  • Save errzey/6526383 to your computer and use it in GitHub Desktop.
Save errzey/6526383 to your computer and use it in GitHub Desktop.
Never miss a deleted message in Skype
In OSX: cd ~/Library/Application\ Support/Skype/<yourusername>
sqlite3 main.db
CREATE TABLE ILOGURDELETEDMESSAGES (AUTHOR TEXT, MESSAGE TEXT);
CREATE TRIGGER LOLILOGB4UREMOVE AFTER UPDATE On Messages
FOR EACH ROW
WHEN (NEW.body_xml ="")
BEGIN
INSERT INTO ILOGURDELETEDMESSAGES (AUTHOR, MESSAGE) VALUES (NEW.author, OLD.body_xml);
END;
Profit.
@zerotao
Copy link

zerotao commented Dec 17, 2014

Skype now appear to remove unknown tables from time to time. Here is my solution:

CREATE TRIGGER LOLICU AFTER UPDATE ON Messages
FOR EACH ROW
WHEN (NEW.body_xml ="")
BEGIN
UPDATE Messages SET body_xml = 'Deleted: ' || OLD.body_xml where id = NEW.id;
END;

Copy link

ghost commented Dec 29, 2015

Hi guys, I do the following:
Add the trigger(whatever which) the trigger is present and all is ok. But when the skype is started, and then shut down. I open the main.db again and there is no triggers, please advise what I am doing wrong?

Copy link

ghost commented Dec 29, 2015

Just in case, steps to reproduce:

  1. Add trigger, write changes
  2. Re-open main.db, make sure the trigger is here.
  3. Open skype app
  4. Close skype app
  5. Open main.db, the trigger is gone.

Might be it's related to newer version of skype, I don't know, what you think, please share your experience.

Copy link

ghost commented Dec 29, 2015

Never mind, for sucessful applying the skype should be online.

@gitSergeyK
Copy link

Now Skype drops all triggers on each start. Any other smart ideas? :)

@errzey
Copy link
Author

errzey commented Jul 29, 2016

Haha I can't believe I never saw these comments.

@errzey
Copy link
Author

errzey commented Jan 18, 2017

I would have to look at skype again to find further workarounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment