Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't see messages I've sent, only messages received #9

Open
ghost opened this issue Apr 22, 2020 · 27 comments
Open

Can't see messages I've sent, only messages received #9

ghost opened this issue Apr 22, 2020 · 27 comments

Comments

@ghost
Copy link

ghost commented Apr 22, 2020

I've used this about 3 years ago and everything worked really well. I've come back to create an updated pdf however, I can only see what my contacts have sent me, not what I've sent them. I have gone through my message archives on both my Mac and iPhone and everything seems to be there, it's just not picking up on it. Is there a setting I have to fiddle around with?

@glaurent
Copy link
Owner

You're the 2nd user to report this bug, I haven't been able to reproduce it. Would you be able to run test builds with debug traces in them to help me pinpoint the issue ?

@ghost
Copy link
Author

ghost commented Apr 22, 2020

Happy to help, just unsure what you need me to do exactly, don’t have any experience, but I’m sure I can follow instructions 😊

@glaurent
Copy link
Owner

Do you have Xcode installed and can you build from source ?

@glaurent
Copy link
Owner

@raraararar any news ?

@ghost
Copy link
Author

ghost commented May 10, 2020

Hey there, I had actually recently deleted Xcode cos I needed more space, I tried to reinstall it and it was unsuccessful
I have online exams soon, just need my laptop to survive that so I’ll try again in June

@glaurent
Copy link
Owner

Ok, thanks 😊. Good luck on your exams 👍 .

@plbecker
Copy link

plbecker commented Jun 7, 2020

Hi Guillaume,
I have the same issue and have Xcode installed / could run some tests

@glaurent
Copy link
Owner

glaurent commented Jun 7, 2020

Hi @plbecker , great ☺️. Are you able to build and run the app from source ? If so I'll point you to where you can put some breakpoints or traces to help me understand this issue.

@plbecker
Copy link

plbecker commented Jun 7, 2020

I get an error message when trying to run the cloned repository: "Apple Development: ambiguous matches" in my keychain (which I don't get for any of my other Xcode projects). I'll try to fix this issue and will get back to you!

@plbecker
Copy link

plbecker commented Jun 7, 2020

Hi so the issue seems to be that the messages that were sent by me are misplaces / not in the same chat timeline. By logging them, I did actually end up seeing what I sent myself, but not in the same chat. I'll try to find a workaround. For a slightly different purpose, I don't need the UI from your app, just the fetching / iMessage reading part (otherwise I'd just do a PR)

@glaurent
Copy link
Owner

glaurent commented Jun 8, 2020

@plbecker wow, thanks a lot, I didn't expect you'd investigate the issue 👍 . If you're looking at just fetching the messages, take a look at the scripts I've used to extract the messages from the chat.db. They are linked from the app's About panel :

Initial Messages DB info from
Matthieu Riegler https://github.com/kyro38/MiscStuff/blob/master/OSXStuff/iMessageBackup.sh

and Noah Slater : https://gist.github.com/nslater/b3cbc894ad2c2516dd02

@plbecker
Copy link

plbecker commented Jun 8, 2020

Perfect, thank you very much! I'll look into those codebases. If I find the issue that prevents my messages from being shown too, I'll let you know!

@glaurent
Copy link
Owner

glaurent commented Jun 9, 2020

Can you post some logs that could point me to the issue, without showing any personal info from your messages db ?

@plbecker
Copy link

Yes of course, I'll send you a private email with this information

@glaurent
Copy link
Owner

Thanks a lot :) You can send it to the email address in my github profile.

@glaurent
Copy link
Owner

Hi @plbecker, any updates ?

@plbecker
Copy link

Hey, I sent you an email! Sorry for the delay

@glaurent
Copy link
Owner

Got it, thanks a lot. I'll take a look at my code and see if I can work something from there.

@ulope
Copy link

ulope commented Mar 11, 2021

I'm having the same issue.
In the specific conversation I'm looking at everything older than about a year and a half I only see messages from the other person.

@glaurent
Copy link
Owner

@ulope - I never got enough info from @plbecker unfortunately, so this issue is still pending. Would you be able to run debug builds of the app ? Or to run it directly from Xcode ?

@ulope
Copy link

ulope commented Mar 11, 2021

@glaurent Yes I can do that. I might need some pointers what to look for though. Swift isn't my home turf ;)

@glaurent
Copy link
Owner

@ulope great, let me push a few build fixes quickly (I haven't had time to maintain this code in a while), and get back to you.

@glaurent
Copy link
Owner

@ulope if you can add some traces (using print() or NSLog()) in ChatsDatabase:collectMessagesForChat, specifically around l264

for messageData in query { let messageContent = messageData[textColumn] ?? "" var dateInt = messageData[dateColumn] ...

so I can see if the messages from yourself are not returned because they're not in the SQL query or because of some other issue.

@ulope
Copy link

ulope commented Mar 12, 2021

@glaurent I'm having a bit of trouble getting it to compile.
It's missing SQLite.

I did run pod install and then manually changed the target of the Sparkle.framework to point to the one in the Pods directory.
Unfortunately for SQLite there is no .framework to be found in Pods.

Do you have an idea what I might be doing wrong?

@glaurent
Copy link
Owner

glaurent commented Mar 12, 2021

After pod install, you have to open the .xcworkspace file that has been created instead of the .xcodeproj. Revert all the changes you've made in the xcodeproj, once pods are setup, it's not meant to be opened on its own.

(sorry, you're getting a crash course in macOS development because of this 😕. Thanks for taking the time to work on it)

@ulope
Copy link

ulope commented Mar 16, 2021

Ok that helped, thanks.

However I neither see print / NSLog output nor do breakpoints seem to work in any of the methods in ChatsDatabase except init.

I'm sure I must be missing something obvious...

(sorry, you're getting a crash course in macOS development because of this 😕. Thanks for taking the time to work on it)

Nah, don't worry about it. It's good for the ego to feel like a dummy again every once in a while :D

@glaurent
Copy link
Owner

Have you tried re-importing your messages DB ? The other methods won't be called otherwise.

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

No branches or pull requests

3 participants