Difference between revisions of "Adding Timestamps to All Received Messages"

From WebOS Internals
Jump to navigation Jump to search
(New page: === Introduction=== A number of users have requested adding timestamps to each message that arrives on the device. Palm actually goes out of their way to group messages that have arrived ...)
 
Line 7: Line 7:
 
=== Procedure===
 
=== Procedure===
  
# [[Portal:Accessing_Linux | Gain root access to your device]]
+
1. Remount the file system as read/write
  
# Remount the file system as read/write
+
2. cd to '''/usr/palm/applications/com.palm.app.messaging/app/controllers/'''
  
# cd to '''/usr/palm/applications/com.palm.app.messaging/app/controllers/'''
+
3. Backup '''chatview-assistant.js''' (just to be safe)
  
# Backup '''chatview-assistant.js''' (just to be safe)
+
4. Open '''chatview-assistant.js''' and comment out the following lines:
 
 
# Open '''chatview-assistant.js''' and comment out the following lines:
 
  
 
  * 1169 - line that starts with: '''if(!ChatFlags.'''
 
  * 1169 - line that starts with: '''if(!ChatFlags.'''
Line 22: Line 20:
 
  * 1180 - second closing bracket on its own line: '''}'''
 
  * 1180 - second closing bracket on its own line: '''}'''
  
# Save the file and exit the editor
+
5. Save the file and exit the editor
  
# Remount the file system as read-only
+
6. Remount the file system as read-only
  
# Logout of your root session
+
7. Logout of your root session
  
# Reboot the device
+
8. Reboot the device
  
 
You should now see a full timestamp on all received messages.
 
You should now see a full timestamp on all received messages.
 
  
 
=== Acknowledgements===
 
=== Acknowledgements===
  
 
Thanks to tk102 and scuba_steve on [http://www.precentral.net/ PreCentral] for the mod.
 
Thanks to tk102 and scuba_steve on [http://www.precentral.net/ PreCentral] for the mod.

Revision as of 18:23, 29 July 2009

Introduction

A number of users have requested adding timestamps to each message that arrives on the device. Palm actually goes out of their way to group messages that have arrived during various time intervals, but if you'd prefer to see a timestamp on each message, simply follow the instructions below.

Procedure

1. Remount the file system as read/write

2. cd to /usr/palm/applications/com.palm.app.messaging/app/controllers/

3. Backup chatview-assistant.js (just to be safe)

4. Open chatview-assistant.js and comment out the following lines:

* 1169 - line that starts with: if(!ChatFlags.
* 1177 - line that starts with: if(today-msg.
* 1179 - first closing bracket on its own line: }
* 1180 - second closing bracket on its own line: }

5. Save the file and exit the editor

6. Remount the file system as read-only

7. Logout of your root session

8. Reboot the device

You should now see a full timestamp on all received messages.

Acknowledgements

Thanks to tk102 and scuba_steve on PreCentral for the mod.