Skip to content

Commit 354b357

Browse files
authored
Fixes Issue #217 - chat is reversed by default (#256)
## Purpose Fixes #217 - new chat messages are reversed / post at the top of the page by default. ## Does this introduce a breaking change? ``` [ ] Yes [x] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? ``` [x] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test Launch the application and post 2 chat messages in a chat channel. Notice that messages go from top to bottom now. As new chat messages are added, they're appended to the end of the chat. Detail steps: * Open the code in Codespaces * run `azd up` from the root directory * Open the URL for the deployed app, test using the above description ## What to Check As new chat messages are posted, they are added beneath previous chat messages.
1 parent 0358d45 commit 354b357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/frontend/Shared/MainLayout.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private bool _isDarkTheme
1717

1818
private bool _isReversed
1919
{
20-
get => LocalStorage.GetItem<bool?>(StorageKeys.PrefersReversedConversationSorting) ?? true;
20+
get => LocalStorage.GetItem<bool?>(StorageKeys.PrefersReversedConversationSorting) ?? false;
2121
set => LocalStorage.SetItem<bool>(StorageKeys.PrefersReversedConversationSorting, value);
2222
}
2323

0 commit comments

Comments
 (0)