mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Add: Show reason for membership events
This commit is contained in:
parent
97c55557d1
commit
407f164cca
1 changed files with 3 additions and 2 deletions
|
@ -1800,9 +1800,10 @@ For use as a `help-echo' function on `ement-user' headings."
|
|||
:value-create (lambda (widget)
|
||||
(pcase-let* ((event (widget-value widget))
|
||||
((cl-struct ement-event sender content) event)
|
||||
((map membership) content)
|
||||
((map membership reason) content)
|
||||
(displayname (ement-room--user-display-name sender ement-room))
|
||||
(string (concat membership " (" displayname ")")))
|
||||
(reason-string (if reason (concat ": " reason) ""))
|
||||
(string (format "%s (%s%s)" membership displayname reason-string)))
|
||||
(insert (propertize string
|
||||
'help-echo #'ement-room--membership-help-echo)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue