File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 353353 font-size : 11px ;
354354 min-width : 14px ;
355355 height : 14px ;
356+ margin-left : 4px ;
356357 }
357358 }
358359
611612 font-size : 12px ;
612613 min-width : 16px ;
613614 height : 16px ;
614- display : flex;
615+ display : inline- flex;
615616 align-items : center;
616617 justify-content : center;
618+ margin-left : 5px ;
619+ vertical-align : middle;
617620 }
618621
619622 .message-status .sending {
10011004 createLightNode ,
10021005 ReliableChannel ,
10031006 HealthStatus ,
1004- } from 'https://unpkg.com/@waku/[email protected] 3e66a33 .0/bundle/index.js' ; 1007+ } from 'https://unpkg.com/@waku/[email protected] 4d5c152 .0/bundle/index.js' ; 10051008
10061009 // Define protobuf schema
10071010 const protoSchema = `
19681971 // Encode with protobuf
19691972 const protoMessage = this . Chat2Message . create ( message ) ;
19701973 const payload = this . Chat2Message . encode ( protoMessage ) . finish ( ) ;
1971- const messageId = ReliableChannel . getMessageId ( payload )
1974+ const messageId = this . reliableChannel . send ( payload ) ;
19721975
19731976 // Track this message as locally sent
19741977 this . localSentMessages . set ( messageId , chatMessageId ) ;
19972000 }
19982001 } )
19992002
2000- // Send the message
2001- this . reliableChannel . send ( payload ) ;
2002-
20032003 } catch ( error ) {
20042004 console . error ( 'Failed to send message:' , error ) ;
20052005 this . addSystemMessage ( `Failed to send message: ${ error . message } ` ) ;
21712171 <span class="timestamp">[${ timestamp } ]</span>
21722172 <span class="sender" style="color: ${ senderColor } ;"><${ message . sender } ></span>
21732173 <span class="message-text"> ${ this . escapeHtml ( message . text ) } </span>
2174+ <span class="message-status ${ statusClass } ">${ statusIcon } </span>
21742175 </div>
21752176 <button class="reply-button">[Reply]</button>
2176- <div class="message-status ${ statusClass } ">${ statusIcon } </div>
21772177 ` ;
21782178
21792179 // Add click handler for reply preview
You can’t perform that action at this time.
0 commit comments