MCPcopy Create free account
hub / github.com/utterance/utterances / setCurrentUser

Method setCurrentUser

src/comment-component.ts:85–96  ·  view source on GitHub ↗
(currentUser: string | null)

Source from the content-addressed store, hash-verified

83 }
84
85 public setCurrentUser(currentUser: string | null) {
86 if (this.currentUser === currentUser) {
87 return;
88 }
89 this.currentUser = currentUser;
90
91 if (this.comment.user.login === this.currentUser) {
92 this.element.classList.add('current-user');
93 } else {
94 this.element.classList.remove('current-user');
95 }
96 }
97}
98
99export function processRenderedMarkdown(markdownBody: Element) {

Callers 1

setUserMethod · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected