Skip to content

Commit

Permalink
First try fixing message duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Dec 6, 2023
1 parent bd02107 commit 1ad6192
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/contexts/MessagesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ export const MessagesProvider = (props: { children: ContextChildren }) => {
account?.hasPublicKey() &&
store.selectedSender &&
store.messageCountPerSender[store.selectedSender] &&
store.messageCountPerSender[store.selectedSender].cnt > 0
store.messageCountPerSender[store.selectedSender].cnt > 0,
store.isConversationLoaded
) {

updateStore('encryptedMessages', () => []);
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Messages.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@
margin-bottom: 0px;
align-items: center;

&:hover, &.selected {
&:hover, &.selected, &.focus {
background-color: var(--background-input);
box-shadow: none;
outline: none;
}

.senderInfo {
Expand Down

0 comments on commit 1ad6192

Please sign in to comment.