23 more patches ported to 1.3.5
[webos-internals:modifications.git] / messaging / messaging-timestamps-builtin.patch
1 diff --git a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
2 index aa6a2b7..a3681e9 100644
3 --- a/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.messaging/app/controllers/chatview-assistant.js
5 @@ -1367,16 +1367,16 @@ var ChatviewAssistant = Class.create({
6         
7                         // if the INCOMING message was sent longer than 10 minutes before it arrived on device,
8                         // add sent date to indicate that this delay happened
9 -                       if (!ChatFlags.isOutgoing(msg.flags) && msg.deviceTimeStamp && msg.timeStamp && (msg.deviceTimeStamp - msg.timeStamp) > (1000 * 60 * 10)) {
10 +//                     if (!ChatFlags.isOutgoing(msg.flags) && msg.deviceTimeStamp && msg.timeStamp && (msg.deviceTimeStamp - msg.timeStamp) > (1000 * 60 * 10)) {
11                                 d.setTime(msg.timeStamp);
12                                 var sentTimeStamp = d;
13                                 
14                                 // Only show the message sent time if it is less than two days old
15                                 // from when it arrived on device
16 -                               if (today - msg.timeStamp <= 172800000) { //172800000 = (1000*60*60*24*2)
17 +//                             if (today - msg.timeStamp <= 172800000) { //172800000 = (1000*60*60*24*2)
18                                         msg.timeStampDeltaMsg = new Template($L("Message Sent: #{dateTime}")).evaluate({dateTime:Mojo.Format.formatDate(sentTimeStamp,'short')});
19 -                               }
20 -                       }
21 +//                             }
22 +//                     }
23  
24                         if (msg.callbackNumber) {
25                                 msg.callbackNumber = PalmSystem.runTextIndexer(msg.callbackNumber);