Add an option to see a history of broadcasts

Description

As making Spark to save a sent broadcast in history file for every receiving contact of that broadcast is kind of complex and also can be resource consuming (sending a broadcast to 100 users and then having Spark to save that message to 100-200 xml files on the sender's side), there could be another solution for this. Spark could be saving broadcasts into a separate file (maybe reusing same xml format of a history file or just a simple txt file) and making it accessible via additional menu "Broadcast history". This file will store a message, date, time and a list of recipients (maybe just name, or username, or maybe full JID, though i would prefer actual Name field). Preferably this list should be searchable and maybe also introduce some collapsing (especially if broadcasts are being sent to hundreds of users). Also, there should be some pagination or separate files per month, year, so Spark won't have to load hundreds of MBs of text after a while.

Environment

None

Activity

Show:
wroot
December 11, 2016, 11:52 AM

Merged initial PR by Alexander https://github.com/igniterealtime/Spark/pull/270

A few issues still needs to be fixed:

  • Using Name instead of username would be more useful, if possible, especially if usernames are just numbers or some special names like user12541 (major).

  • It only saves messages sent through Broadcast message dialog, but not if one sends a broadcast by right-clicking a few selected users. Spark uses different dialog for that. Although most users probably are using the main menu. (medium)

  • Adding a date before the time could be useful (medium).

  • History is saved into Spark profile's root folder and history is the same for every xmpp user logged on that machine with same OS user. Granted, in most cases this is sufficient. But some users might have two separate xmpp accounts for separate tasks and would like to have separate history of broadcasts. So ideally history should be moved to user\user@server\transcripts and should only open a history of a particular xmpp user (minor).

  • Broadcast history window is always positioned in the upper left corner of the screen and it doesn't save its new position when you drag the window (minor).

  • Broadcast history window should have a title, can use the same i18n string for that (trivial).

wroot
December 14, 2016, 8:44 PM

Have done additional code cleanup, translations, formatting and dialog window tidying up, also changed jid to nickname (#273).

Still needs to be addressed:

  • It only saves messages sent through Broadcast message dialog, but not if one sends a broadcast by right-clicking a few selected users. Spark uses different dialog for that. Although most users probably are using the main menu. (medium)

  • Currently last nickname is added as "nickname, " which looks dirty. Needs a better way to close up array (trivial)

wroot
December 18, 2016, 11:02 AM
Edited

Done real life testing. Works fine. But there is one more thing:

  • History window needs to do text wrapping. Also long links should be tested, as they tend to break text wrapping. (medium)

wroot
December 18, 2016, 12:27 PM

Added text wrapping with #274.

wroot
January 28, 2017, 6:25 PM

Closing this as resolved. Filed last issues as separate tickets ( and ). Not critical issues. So, going to release 2.8.3 with this feature.

Fixed

Assignee

alexander

Reporter

wroot

Labels

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Priority

Major
Configure