Browse Source

session readed UI

pull/18/head
Sun 4 years ago
parent
commit
711c9a1919
  1. 2
      lib/apps/chat/provider.dart
  2. 1
      lib/provider.dart

2
lib/apps/chat/provider.dart

@ -153,9 +153,7 @@ class ChatProvider extends ChangeNotifier { @@ -153,9 +153,7 @@ class ChatProvider extends ChangeNotifier {
/// and then this message will show in message list.
messageCreate(Message msg) {
final fgid = this.friends[msg.fid].gid;
rpc.send('chat-message-create', [msg.fid, fgid, msg.type.toInt(), msg.content]);
notifyListeners();
}
/// delete a message.

1
lib/provider.dart

@ -228,6 +228,7 @@ class AccountProvider extends ChangeNotifier { @@ -228,6 +228,7 @@ class AccountProvider extends ChangeNotifier {
rpc.send('session-suspend', [this.actived, this.activedSession.gid, must]);
}
this.actived = id;
this.activedSession.lastReaded = true;
final online = this.activedSession.online;
if (online == OnlineType.Lost || online == OnlineType.Suspend) {
if (online == OnlineType.Lost) {

Loading…
Cancel
Save