+
Skip to content

Status messages #111

Open
Open
@dchiquito

Description

@dchiquito

It would be nice to have a way to publish some information about your current status. This way you can announce that you're afk or on vacation, be back soon or Tryin to make a change :-/. Slack has something similar: https://slack.com/help/articles/201864558-Set-your-Slack-status-and-availability

One way it could work:

  • /setstatus [status] - push a new status out to the swarm
  • /status [user[.id]] - get a user's status
  • The status would be shown at the top of the chat history box when chatting with a user. It could also hypothetically be included somewhere in the user list in the desktop GUI, but I can't think of a good way that would also keep it suitably dense. Perhaps truncated, in smaller text, after the username, with a hover containing the full text?
  • I'm not sure on the requirements for message types, but I'm guessing it should look something like this:
{
  timestamp: number,
  type: 'chat/status',
  content: {
    user: [user id],
    status: [the new status]
  }
}
  • I see something in the code regarding "about" for a user, perhaps status should be included there as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载