mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 00:51:38 +02:00
✨ Add support for self mentions (#6341)
This commit is contained in:
parent
a3ccc3dfef
commit
53dcd94f0d
2 changed files with 6 additions and 8 deletions
|
@ -26,6 +26,7 @@
|
||||||
- Fix merge path nodes with only one node selected [Taiga #9626](https://tree.taiga.io/project/penpot/issue/9626)
|
- Fix merge path nodes with only one node selected [Taiga #9626](https://tree.taiga.io/project/penpot/issue/9626)
|
||||||
- Fix problem with import errors [Taiga #10040](https://tree.taiga.io/project/penpot/issue/10040)
|
- Fix problem with import errors [Taiga #10040](https://tree.taiga.io/project/penpot/issue/10040)
|
||||||
- Fix color gradient on texts [Taiga Issue #7488](https://tree.taiga.io/project/penpot/issue/7488)
|
- Fix color gradient on texts [Taiga Issue #7488](https://tree.taiga.io/project/penpot/issue/7488)
|
||||||
|
- Add support for self mentions [Taiga #10809](https://tree.taiga.io/project/penpot/issue/10809)
|
||||||
|
|
||||||
## 2.6.2 (Unreleased)
|
## 2.6.2 (Unreleased)
|
||||||
|
|
||||||
|
|
|
@ -450,7 +450,6 @@
|
||||||
(mf/defc mentions-panel*
|
(mf/defc mentions-panel*
|
||||||
[]
|
[]
|
||||||
(let [mentions-s (mf/use-ctx mentions-context)
|
(let [mentions-s (mf/use-ctx mentions-context)
|
||||||
profile (mf/deref refs/profile)
|
|
||||||
|
|
||||||
team (mf/deref refs/team)
|
team (mf/deref refs/team)
|
||||||
members (:members team)
|
members (:members team)
|
||||||
|
@ -467,13 +466,11 @@
|
||||||
mentions-users
|
mentions-users
|
||||||
(mf/with-memo [mention-filter members]
|
(mf/with-memo [mention-filter members]
|
||||||
(->> members
|
(->> members
|
||||||
(filter (fn [{:keys [id fullname email]}]
|
(filter (fn [{:keys [fullname email]}]
|
||||||
(and
|
|
||||||
(not= id (:id profile))
|
|
||||||
(or (not mention-filter)
|
(or (not mention-filter)
|
||||||
(empty? mention-filter)
|
(empty? mention-filter)
|
||||||
(str/includes? (str/lower fullname) (str/lower mention-filter))
|
(str/includes? (str/lower fullname) (str/lower mention-filter))
|
||||||
(str/includes? (str/lower email) (str/lower mention-filter))))))
|
(str/includes? (str/lower email) (str/lower mention-filter)))))
|
||||||
(take 4)
|
(take 4)
|
||||||
(into [])))
|
(into [])))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue