Ticket #408 (closed enhancement: fixed)

Opened 3 years ago

Last modified 17 months ago

Implement appending to chat logs on demand

Reported by: valerio Owned by: fontknocker
Priority: major Milestone: kmess-3.0
Component: GUI - Chat window Version: 2.0-beta1
Keywords: Cc:

Description (last modified by fontknocker) (diff)

At the moment, the chat logs (XML, HTML or text) are saved when the chat closes. If the computer hangs, the X server crashes, or KMess hangs or crashes, all current chat logs are lost.

KMess should add new messages to the log files as they arrive. At least it should do it for the more important XML logs.

This would bring the following consequences:

  • the chat logs will always be up-to-date (no data loss),
  • there will be no delay when closing a chat tab

As a very little downside, we'll have to keep the file fully readable at any moment (ie we'd have to remove the footer, add the new message then add the footer again).

An (worst) alternative could be to save every 30s or so.

 Reference topic

Change History

Changed 3 years ago by valerio

  • description modified (diff)

Changed 3 years ago by diederik

I'm all in for saving with an interval timer! :) Saving at every typed chat message seams a bit resource intensive to me.

Changed 3 years ago by fontknocker

  • owner set to fontknocker
  • description modified (diff)

Changed 17 months ago by valerio

  • status changed from new to closed
  • resolution set to fixed

Implemented recently, in the chathistory-new branch.

Note: See TracTickets for help on using tickets.