-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
riccardocucia
committed
Nov 5, 2024
1 parent
babbcea
commit 852fc07
Showing
25 changed files
with
463 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: supabase-indexes | ||
title: Database Indexes | ||
--- | ||
|
||
These indexes are added to improve the performance of foreign keys in database tables: | ||
|
||
```sql | ||
CREATE INDEX ON "chats"."messages" USING btree ("authorId"); | ||
CREATE INDEX ON "chats"."messages" USING btree ("roomId"); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_chat_types/flutter_chat_types.dart' as types; | ||
|
||
extension MessageStatusEx on types.Status { | ||
IconData get icon { | ||
switch (this) { | ||
case types.Status.delivered: | ||
return Icons.done_all; | ||
case types.Status.error: | ||
return Icons.error_outline; | ||
case types.Status.seen: | ||
return Icons.done_all; | ||
case types.Status.sending: | ||
return Icons.timelapse; | ||
case types.Status.sent: | ||
return Icons.done; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:flutter_chat_types/flutter_chat_types.dart' as types; | ||
|
||
extension UserEx on types.User { | ||
String getUserName() => firstName != null || lastName != null | ||
? '${firstName ?? ''} ${lastName ?? ''}'.trim() | ||
: id; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.