fix(server): improve message handling and data privacy
- fix unread count calculation logic in message repository - implement logic to retrieve other participant's last read sequence in conversation handlers - mask real names in verification record responses for privacy - improve error reporting in main entry point by using stderr instead of zap logger during initialization
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
@@ -14,9 +15,8 @@ func main() {
|
||||
// 初始化应用程序(Wire 自动生成)
|
||||
app, err := InitializeApp()
|
||||
if err != nil {
|
||||
zap.L().Fatal("failed to initialize app",
|
||||
zap.Error(err),
|
||||
)
|
||||
fmt.Fprintf(os.Stderr, "failed to initialize app: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// 启动应用程序
|
||||
|
||||
Reference in New Issue
Block a user