Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Command and basic UI for custom presence status messages. #412

Closed
wants to merge 9 commits into from

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented Aug 11, 2016

To make a start on element-hq/element-web#1528, I've added the command /status to set yourself to one of the 3 states and to leave a custom message. This will only work if you are on the latest synapse develop right now due to a bug. I've left offline and unavaliable in there for the sake of having it there, but I believe synapse will always set you to online if you have any activity.

In addition, the MemberTiles will now display status_msg if it has been set alongside your presence state.

This requires matrix-org/matrix-js-sdk#167 in order to work. * Which has been merged :)

Signed-off-by: Will Hunt will@half-shot.uk


Fixes https://github.com/vector-im/riot-web/issues/478
~ Travis

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@@ -271,7 +271,22 @@ var commands = {
}
}
return reject(this.getUsage());
})
}),
status: new Command("status", "<online|offline|unavailable> [<status message>]", function(roomId, args) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could do with an empty line here

@richvdh
Copy link
Member

richvdh commented Aug 22, 2016

ok to test

@richvdh
Copy link
Member

richvdh commented Aug 22, 2016

looks better. @ara4n: any comments on the UX?

@Half-Shot
Copy link
Contributor Author

Bump?

@ara4n
Copy link
Member

ara4n commented Dec 22, 2016

uh, i seem to have accidentally managed to miss this for months; sorry :(

My concern here is whether the idea of custom presence states is actually how we want to do this in terms of the spec. It feels like the current online/idle/offline states have pretty well defined semantics, and are basically an enum (which may be internationalised etc. in future).

Going and then using that field as a free-form string feels pretty wrong. Instead it feels like freeform status messages should be an orthogonal separate profile field of some kind.

I am painfully aware that the spec says you can put custom statuses in presence, but I think this is probably a mistake that wasn't fully thought through at the time.

@erikjohnston do you have thoughts on this (given you've been playing with both presence & profiles recently?)

@t3chguy
Copy link
Member

t3chguy commented Dec 20, 2017

Is this made redundant by @turt2live's presence stuffs?

@turt2live
Copy link
Member

no

@t3chguy
Copy link
Member

t3chguy commented Dec 20, 2017

oh it has custom status stuff too, nvm

@Half-Shot
Copy link
Contributor Author

Half-Shot commented Jul 25, 2018

I just remembered this PR exists and I'm wondering if it's worth resurrecting this on the basis that we still don't have a spec solution, and it's in use by bridges in the wild.

@ara4n
Copy link
Member

ara4n commented Oct 2, 2018

@Half-Shot does this just do arbitrary messages for custom presence, or is it meant to be arbitrary states like "away" or "asleep"?

@Half-Shot
Copy link
Contributor Author

@ara4n >does this just do arbitrary messages for custom presence, or is it meant to be arbitrary states like "away" or "asleep"?

It's custom messages because I feel like if we want to restrict the messages to a subset for uniformity, it should be specced.

@turt2live
Copy link
Member

@Half-Shot
Copy link
Contributor Author

@turt2live is this useful to you at all, if I were to clean it up and look at getting it merged?

@turt2live
Copy link
Member

Not for my particular use case, sadly. It'd be good to see it landed independently, although I think presence is scheduled for a rethink.

@Half-Shot
Copy link
Contributor Author

although I think presence is scheduled for a rethink

Which was the same reason this kinda stalled last time :/

Anyway, I've fixed this up as best I can without testing it.

@turt2live
Copy link
Member

Which was the same reason this kinda stalled last time :/

The eternal story of presence :(

@Half-Shot Half-Shot mentioned this pull request Dec 13, 2018
9 tasks
@jryans
Copy link
Collaborator

jryans commented Jan 2, 2019

@Half-Shot Would it make sense to close this then, since the path to merging seems unclear at the moment? We can always re-open / recover the code in the future.

@Half-Shot
Copy link
Contributor Author

@jryans Yes, although I'd like an issue opened to state that status_msg and the new experimental type are at odds in terms of UX (even if not the same thing technically).

@jryans
Copy link
Collaborator

jryans commented Jan 5, 2019

I filed element-hq/element-web#8029 to capture the UX conflicts between these two related features. Please edit or comment on the new issue as needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants