Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

"Missed call" log displays wrong time if offline

Open 2-4601 opened this issue 11 years ago • 6 comments

  1. Turn on air plane mode
  2. Ask someone to call you with Signal
  3. Wait for five minutes
  4. Turn off air plane mode
  5. 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

2-4601 avatar Oct 03 '15 21:10 2-4601

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 avatar Jan 27 '16 20:01 cascheberg

@cascheberg I think this is the repo you're looking for: WhisperSystems/TextSecure-Server.

mantono avatar Jan 27 '16 22:01 mantono

TextSecure uses a TextSecureProtos protobuf class from WhisperSystems/libtextsecure-java. RedPhone uses a CompressedInitiateSignalProtocol protobuf class, but I could not find the .proto files.

cascheberg avatar Jan 29 '16 10:01 cascheberg

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 avatar Jun 14 '16 01:06 findkiko

@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.

cascheberg avatar Jun 14 '16 05:06 cascheberg

GitHub Issue Cleanup: See #7598 for more information.

automated-signal avatar Apr 02 '18 21:04 automated-signal