Ticket #402 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Chat: shows "share or invite" hint even on resume of shared instance

Reported by: sascha_silbe Owned by: alsroot
Priority: Unspecified by Maintainer Milestone: 0.84
Component: Chat Version: Git as of bugdate
Severity: Blocker Keywords: r+
Cc: FGrose, eben Distribution/OS: Unspecified
Bug Status: Resolved

Description

Chat shows the usual hint about sharing with neighbourhood or inviting someone even if a previously-shared instance in resumed.

Attachments

sugar-402.patch Download (0.9 KB) - added by alsroot 4 years ago.

Change History

  Changed 4 years ago by FGrose

  • cc FGrose, eben added
  • distribution changed from Ubuntu to Unspecified
  • status_field changed from Unconfimed to New

The Off-line/Shared highlight times out. It may be a feature to remind the user.

More discussion on this design...

  Changed 4 years ago by erikos

  • severity changed from Unspecified to Major
  • milestone changed from Unspecified by Release Team to 0.84

I would like to see this fixed - might consider looking at #525 as well.

follow-up: ↓ 7   Changed 4 years ago by eben

I'm not sure I see this as a bug. There might be better ways to handle it, but removing the alert might not be it.

A better system would actually recognize that the instance has been shared in the past, and provide the option to resume the chat, automatically inviting the former participants. In fact, this could/should be a Sugar thing (opposed to a Chat thing), by which any activity resumed gave an option (in the launcher!?) to resume it with the former participants, thus automatically sending them invitations to join. That approach prevents redundant code, limits developer hassle, and keeps the invitation step in the trusted shell.

If all of that was built within Sugar, then I would see the presence of the current alert a "bug". Chat should then recognize when an instance is a fresh one and provide the alert, and skip it for resumed instances (aware that they've already been prompted to share) with the assumption that the intent is to review or copy the conversation, and not continue it.

  Changed 4 years ago by sascha_silbe

I consider the current behaviour a bug. There are two different indicators for the "shared" status and they disagree:
1. The "Private/Neighbourhood" listbox that's greyed out and shows "Neighbourhood", i.e. indicating that the current session is shared.
2. The "you need to go online" hint that indicates the current session is NOT shared.

I don't know for sure which one is correct, but they obviously can't both be right.

  Changed 4 years ago by erikos

  • severity changed from Major to Blocker

I would like to see that fixed - can someone look into that? (I think Morgan is busy with other stuff currently)

  Changed 4 years ago by alsroot

  • owner changed from morgs to alsroot
  • status changed from new to assigned

in reply to: ↑ 3   Changed 4 years ago by alsroot

Replying to eben:

A better system would actually recognize that the instance has been shared in the past, and provide the option to resume the chat, automatically inviting the former participants. In fact, this could/should be a Sugar thing (opposed to a Chat thing), by which any activity resumed gave an option (in the launcher!?) to resume it with the former participants, thus automatically sending them invitations to join. That approach prevents redundant code, limits developer hassle, and keeps the invitation step in the trusted shell.

I've created #669 for that reason

Changed 4 years ago by alsroot

  Changed 4 years ago by alsroot

  • keywords r? added

  Changed 4 years ago by alsroot

  • owner changed from alsroot to morgs

  Changed 4 years ago by erikos

As Eben pointed out, Sugar should ideally offer the option to re-share an entry that has been shared before. As currently entries are shared directly (like previously shared Browse or Write) we should do the same in Chat and do the propper fix for 0.86 I guess.

So I think the patch provided by Aleksey looks good. What do you think, Tomeu?

  Changed 4 years ago by erikos

  • keywords r+ added; r? removed

Tomeu gave as well the r+ on irc. I have filed #671 for the better handling in 0.86 described by Eben.

  Changed 4 years ago by erikos

  • status_field changed from New to Needinfo

Morgan, can either you release a new version of chat - or give one of us access to your repo?

  Changed 4 years ago by alsroot

  • owner changed from morgs to alsroot

  Changed 4 years ago by alsroot

  • status changed from assigned to closed
  • resolution set to fixed
  • status_field changed from Needinfo to Resolved

Well, I was thinking a lot comparing all pro and contras..
and finally decided to apply this not trivial patch!

follow-up: ↓ 16   Changed 4 years ago by erikos

Where was it pushed to? It does not seem to be in git.

in reply to: ↑ 15   Changed 4 years ago by alsroot

Replying to erikos:

Where was it pushed to? It does not seem to be in git.

today is 1st April

Note: See TracTickets for help on using tickets.