Skip to content

Instantly share code, notes, and snippets.

View tahiralvi's full-sized avatar
🎯
Focusing

Tahir Alvi tahiralvi

🎯
Focusing
View GitHub Profile
createMessageItem(message, isCurrentUser, isContinue, unreadCount) {
var messageSet = this.createDiv();
messageSet.id = message.messageId;
this._setClass(messageSet, isCurrentUser ? [className.MESSAGE_SET, className.USER] : [className.MESSAGE_SET]);
if (isContinue) {
messageSet.style.cssText += `margin-top: ${MARGIN_TOP_MESSAGE}`;
}
var senderImg = this.createDiv();
this._setClass(senderImg, [className.IMAGE]);