From f1db8e06011ffa33f53c26a2641497ec967bcc1e Mon Sep 17 00:00:00 2001 From: diamondburned Date: Thu, 17 Dec 2020 17:12:27 -0800 Subject: [PATCH] Added MessageReferencer for text.Rich This commit added MessageReferencer for the text.Rich segments, which allows a message to highlight a URL or text as a reference to other messages. This could be used for replies as well as links that are supposed to go to other messages. The frontend gets to decide how exactly to represent the message when it is clicked. However, as of right now, there is no API to fetch a single message individually, so this API is limited to just within the message buffer. --- repository/gob/repository.gob | Bin 37351 -> 37889 bytes repository/main.go | 17 +++++++++++++++++ text/text.go | 12 ++++++++++++ 3 files changed, 29 insertions(+) diff --git a/repository/gob/repository.gob b/repository/gob/repository.gob index 5fe1e10f14a677c31c0e82d334a4b56c6608160a..8337ab5f9f620304375f522491abea642b002a9c 100644 GIT binary patch delta 496 zcmZXR!AiqG5Qdw*Xp0oQc%Gv|h<7~+y%g%DAf7jyX?N*n6Lu%moPziSrH|mnqfium zqP|6OlD3Cp*bp{5^X2;|+jsH$AwGZl(O~o2{}SSMyD2ZuM6-*&2YtRCF$6isDbCQN zQ|Q422qrgHdY}R(#x2mtfG-M50z=@Br2%Az$oB{^E)dELiWx`;(x-;J^ff$9CkZ?- zwNg4}0{4~oB}y;(dyvbzqofG4!sn6*v!j5mTLlT0C1OY`0@5a|cg7ugyP`TE-(zN0oQ1kk)XR&3JTu!-+D` zX09#YJcfqiy#cf5Z8J}em$ad1V{pP_z!><|i4P|}Xm<$Xct_G$(8aRV%S