Skip to content

Commit

Permalink
Fixed component to check Legacy flag instead of V2 (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
summraznboi authored Aug 1, 2022
1 parent d2f51ec commit eb85567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/messages-page/message/message.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<!-- The messages are received from the backend encrypted. If we have the unencrypted
text stored we use that instead. -->
<div
*ngIf="message.V2 && message.TstampNanos"
*ngIf="!message.Legacy && message.TstampNanos"
class="d-flex align-items-center py-5px px-15px messages-thread__border-radius fs-15px message__min-height message__sender-bubble-color"
style="white-space: pre-wrap; overflow-wrap: anywhere"
>{{ message.DecryptedText }}</div>
<div
*ngIf="!message.V2 && message.TstampNanos"
*ngIf="message.Legacy && message.TstampNanos"
class="d-flex align-items-center py-5px px-15px messages-thread__border-radius fs-15px message__min-height message__sender-bubble-color"
style="white-space: pre-wrap; overflow-wrap: anywhere"
>{{
Expand Down

0 comments on commit eb85567

Please sign in to comment.