From 046f865eb620be4a04c0f6dc00628dbbd4569048 Mon Sep 17 00:00:00 2001 From: yenda Date: Mon, 15 Jun 2020 14:43:21 +0200 Subject: [PATCH] mentions (#105) --- docs/stable/6-payloads.md | 9 +++++++++ wordlist.txt | 1 + 2 files changed, 10 insertions(+) diff --git a/docs/stable/6-payloads.md b/docs/stable/6-payloads.md index 0e5bcd1..4b21ab4 100644 --- a/docs/stable/6-payloads.md +++ b/docs/stable/6-payloads.md @@ -161,6 +161,15 @@ There are other content types that MAY be implemented by the client: * `EMOJI` * `TRANSACTION_COMMAND` +##### Mentions + +A mention MUST be represented as a string with the `@0xpk` format, where `pk` is the public key of the [user account](https://specs.status.im/spec/2) to be mentioned, within the `text` field of a message with content_type `TEXT_PLAIN`. +A message MAY contain more than one mention. +This specification RECOMMENDs that the application does not require the user to enter the entire pk. +This specification RECOMMENDs that the application allows the user to create a mention by typing @ followed by the related ENS or 3-word pseudonym. +This specification RECOMMENDs that the application provides the user auto-completion functionality to create a mention. +For better user experience, the client SHOULD display a known [ens name or the 3-word pseudonym corresponding to the key](https://specs.status.im/spec/2#contact-verification) instead of the `pk`. + ##### Sticker content type A `ChatMessage` with `STICKER` `Content/Type` MUST also specify the ID of the `Pack` and diff --git a/wordlist.txt b/wordlist.txt index 3c71fd6..f8bad73 100644 --- a/wordlist.txt +++ b/wordlist.txt @@ -169,6 +169,7 @@ pubkey publicKey puk pyspelling +RECOMMENDs relayers requestMessages RLP