Jive Software Open Source

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Spark
  • SPARK-671

hide "show chat history" button if chat history is disabled

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.5.0
  • Fix Version/s: 2.6.0
  • Component/s: None
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

The button is always displayed, it would be nice if one would also hide it if no chat history is yet available but as this requires a file access it may be better to ignore this case and display an empty history.
But as soon as the history is disabled it makes no sense to open a window to display no history. If I remember right the button is not available in the chat window but in the roster window within the popup menu.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andrew Seymour added a comment - 07/09/08 01:40 AM

Fixed, patch submitted by David Schuster.

Show
Andrew Seymour added a comment - 07/09/08 01:40 AM Fixed, patch submitted by David Schuster.
Hide
Permalink
wroot added a comment - 07/09/08 01:33 PM

there is still "View Contact History" in contact's context menu

Show
wroot added a comment - 07/09/08 01:33 PM there is still "View Contact History" in contact's context menu
Hide
Permalink
David Schuster added a comment - 07/10/08 11:31 AM

apply this patch to remove the icon from the context menu

Index: src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
===================================================================
— src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java (revision 10653)
+++ src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java (working copy)
@@ -77,9 +77,10 @@

notificationDateFormatter = new SimpleDateFormat(dateFormat);

messageDateFormatter = new SimpleDateFormat(timeFormat);

-

  • final ContactList contactList = SparkManager.getWorkspace().getContactList();

-

+

+ final LocalPreferences localPreferences = SettingsManager.getLocalPreferences();

+

+ final ContactList contactList = SparkManager.getWorkspace().getContactList();

final Action viewHistoryAction = new AbstractAction() {

public void actionPerformed(ActionEvent actionEvent) {

@@ -96,7 +97,9 @@
contactList.addContextMenuListener(new ContextMenuListener() {

public void poppingUp(Object object, JPopupMenu popup) {

if (object instanceof ContactItem) {

  • popup.add(viewHistoryAction);

+ if (localPreferences.isChatHistoryEnabled()) { + popup.add(viewHistoryAction); + }

}

}

Show
David Schuster added a comment - 07/10/08 11:31 AM apply this patch to remove the icon from the context menu Index: src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java =================================================================== — src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java (revision 10653) +++ src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java (working copy) @@ -77,9 +77,10 @@ notificationDateFormatter = new SimpleDateFormat(dateFormat); messageDateFormatter = new SimpleDateFormat(timeFormat); -
  • final ContactList contactList = SparkManager.getWorkspace().getContactList();
- + + final LocalPreferences localPreferences = SettingsManager.getLocalPreferences(); + + final ContactList contactList = SparkManager.getWorkspace().getContactList(); final Action viewHistoryAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { @@ -96,7 +97,9 @@ contactList.addContextMenuListener(new ContextMenuListener() { public void poppingUp(Object object, JPopupMenu popup) { if (object instanceof ContactItem) {
  • popup.add(viewHistoryAction);
+ if (localPreferences.isChatHistoryEnabled()) { + popup.add(viewHistoryAction); + } } }

People

  • Assignee:
    Daniel Henninger
    Reporter:
    LG
Vote (1)
Watch (1)

Dates

  • Created:
    04/05/07 12:18 AM
    Updated:
    07/10/08 11:31 AM
    Resolved:
    07/09/08 01:40 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for igniterealtime.org. Try JIRA - bug tracking software for your team.