Function
isReplierMember
(
thread: {
firstManagerReplyAt: bigint | null;
firstUserReplyAt: bigint | null;
} | null,
last: { sentAt: Date; author: users | null } | null
)
Source from the content-addressed store, hash-verified
| 30 | } |
| 31 | |
| 32 | export function isReplierMember( |
| 33 | thread: { |
| 34 | firstManagerReplyAt: bigint | null; |
| 35 | firstUserReplyAt: bigint | null; |
| 36 | } | null, |
| 37 | last: { sentAt: Date; author: users | null } | null |
| 38 | ) { |
| 39 | return ( |
| 40 | !thread?.firstUserReplyAt && |
| 41 | last?.author?.role && |
| 42 | last?.author?.role === Roles.MEMBER |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | export function isReplierManager( |
| 47 | thread: { |
Tested by
no test coverage detected