"Missed call" log displays wrong time if offline
- Turn on air plane mode
- Ask someone to call you with Signal
- Wait for five minutes
- Turn off air plane mode
- The call log message says: "Missed call from someone: Now"
Now should be 5 min
Note that messages that were sent to you while you were in air plane mode show correct time.
Signal 3.0.1 Nexus 4, stock 5.1.1 Huaweui U8800, 4.0.4
I'd like to offer support in fixing this, but it seems to require server-side changes. Is that server code even publicly available (on GitHub)?
@cascheberg I think this is the repo you're looking for: WhisperSystems/TextSecure-Server.
TextSecure uses a TextSecureProtos protobuf class from WhisperSystems/libtextsecure-java.
RedPhone uses a CompressedInitiateSignalProtocol protobuf class, but I could not find the .proto files.
I had a look at this bug. I think I've chased down where the date is getting set but I'm not 100% sure if missed call entities even have a "DateSent" attribute. I'd appreciate if somebody could take a look at https://github.com/findkiko/Signal-Android/commit/6397fbd198e40a470fceaea69c4d493cccab98fb Am I on the right path? I'm not sure even where to begin compiling a new app and putting it on a phone to test this, or whether it's necessary for a patch like this. Thanks
EDIT: Ignore the previous commit. This line looks more like the culprit: https://github.com/WhisperSystems/Signal-Android/blob/ec63f7014e5e67993ac0793cc94de092d2b7eca6/src/org/thoughtcrime/securesms/ConversationUpdateItem.java#L83 Could this be just a one-word fix after all? (getReceiveTime -> getSendTime)
@findkiko It's not that simple.
You can follow the code from RedPhoneService.notifyCallStale() and also GcmBroadcastReceiver.handleReceivedCall(...).
I think the relevant code is not available, so currently @moxie0 would have to fix it.
GitHub Issue Cleanup: See #7598 for more information.