Twitter | Search | |
vixentael 👩‍💻 21 May 19
If you want to measure time difference between two events you shouldn't rely on current time, because user can change clock back. You could use monotonic clock or boot timer instead. F.e. this code piece allows your app to lock some features after X secs.
Reply Retweet Like
Кот за решёткой 22 May 19
Replying to @vixentael @steipete
Yep. Recently I found such bug in Telegram in the in-app passcode implementation.
Reply Retweet Like
vixentael 👩‍💻 22 May 19
Replying to @brizzzon @steipete
Can you describe it?
Reply Retweet Like
Кот за решёткой
Steps to reproduce: 1. Go to the app and turn passcode on 2. Set Auto-Lock timer 3. Move the app to background 4. Wait for auto lock timer exceeds. (App should be locked after that). 5. Open system preferences and change system's date to the yesterday date. 6. Open Telegram.
Reply Retweet Like More
vixentael 👩‍💻 22 May 19
Anyone from can comment?
Reply Retweet Like
Sergey Grischyov 22 May 19
I believe it would have never happened if official Telegram client were truly open source and community managed. What a shame 🤦‍♂️
Reply Retweet Like
Кот за решёткой 22 May 19
If you check telegram’s swift sources they are using simple to handle differences between state transitions
Reply Retweet Like