Skip to content

Commit

Permalink
update .readMe
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemragab committed Jan 6, 2022
1 parent 60daec6 commit 9b0caf6
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@
* update packages and support multiple device open same account

## 1.0.3
* update packages

## 1.0.4
* update packages
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<a href="https://hatemragab.github.io/VChatSdk-Documentation/"> VCHAT Documention</a> <br />
<a href="https://pub.dev/packages/v_chat_sdk"> v_chat_sdk on pub.dev</a> <br />

<a href="https://hatemragab.github.io/VChatSdk-Documentation/docs/how_to_get_backend_code/how_to_get_backend_code"> Backend Code </a> <br />


## Android Test

<a href="https://drive.google.com/file/d/1BpEY2wrzzPqbgT-la0-xHc6VbwFVJ5rz/view?usp=sharing"> <img src="https://user-images.githubusercontent.com/37384769/145644981-17ec8f75-be19-4cea-9322-52f1b31a15da.png" width ="300" /></a> <br />
<a href="https://play.google.com/store/apps/details?id=com.vchatsdk.app"> <img src="https://user-images.githubusercontent.com/37384769/145644981-17ec8f75-be19-4cea-9322-52f1b31a15da.png" width ="300" /></a> <br />

## IOS Test Flight

Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/group_chat_info/group_chat_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class _GroupChatInfoState extends State<GroupChatInfo> {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
members[index].mame.text,
members[index].name.text,
members[index]
.vChatUserGroupRole
.inString
Expand Down
18 changes: 9 additions & 9 deletions lib/src/models/v_chat_group_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:v_chat_sdk/src/utils/v_chat_config.dart';
class VChatGroupUser {
final String id;
final String email;
final String mame;
final String name;
final String image;
final VChatUserGroupRole vChatUserGroupRole;

Expand All @@ -13,7 +13,7 @@ class VChatGroupUser {
const VChatGroupUser({
required this.id,
required this.email,
required this.mame,
required this.name,
required this.image,
required this.vChatUserGroupRole,
});
Expand All @@ -24,33 +24,33 @@ class VChatGroupUser {
(other is VChatGroupUser &&
runtimeType == other.runtimeType &&
email == other.email &&
mame == other.mame &&
name == other.name &&
image == other.image &&
vChatUserGroupRole == other.vChatUserGroupRole);

@override
int get hashCode =>
email.hashCode ^
mame.hashCode ^
name.hashCode ^
image.hashCode ^
vChatUserGroupRole.hashCode;

@override
String toString() {
return 'VChatGroupUser{ id: $id, email: $email, mame: $mame, image: $image, vChatUserGroupRole: $vChatUserGroupRole,}';
return 'VChatGroupUser{ id: $id, email: $email, mame: $name, image: $image, vChatUserGroupRole: $vChatUserGroupRole,}';
}

VChatGroupUser copyWith({
String? id,
String? email,
String? mame,
String? name,
String? image,
VChatUserGroupRole? vChatUserGroupRole,
}) {
return VChatGroupUser(
id: id ?? this.id,
email: email ?? this.email,
mame: mame ?? this.mame,
name: name ?? this.name,
image: image ?? this.image,
vChatUserGroupRole: vChatUserGroupRole ?? this.vChatUserGroupRole,
);
Expand All @@ -60,7 +60,7 @@ class VChatGroupUser {
return {
'_id': id,
'email': email,
'mame': mame,
'mame': name,
'image': image,
'role': vChatUserGroupRole.inString,
};
Expand All @@ -70,7 +70,7 @@ class VChatGroupUser {
return VChatGroupUser(
id: map['_id'] as String,
email: map['email'] as String,
mame: map['name'] as String,
name: map['name'] as String,
image: VChatConfig.profileImageBaseUrl + (map['imageThumb'] as String),
vChatUserGroupRole: map['role'] == VChatUserGroupRole.admin.inString
? VChatUserGroupRole.admin
Expand Down
27 changes: 13 additions & 14 deletions lib/src/services/socket_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,20 @@ class SocketService {
bool get isConnected => _socket!.connected;

Socket getSocket() {
return io(VChatConfig.serverIp, <String, dynamic>{
'transports': ['websocket'],
'pingTimeout': 5000,
'connectTimeout': 5000,
'pingInterval': 5000,
'extraHeaders': <String, String>{
'Authorization': VChatAppService.instance.vChatUser!.accessToken,
"accept-language": VChatAppService.instance.currentLocal
return io(
VChatConfig.serverIp,
<String, dynamic>{
'transports': ['websocket'],
'pingTimeout': 5000,
'connectTimeout': 5000,
'pingInterval': 5000,
'extraHeaders': <String, String>{
'Authorization': VChatAppService.instance.vChatUser!.accessToken,
"accept-language": VChatAppService.instance.currentLocal
},
'forceNew': true
},
'forceNew': true
});
}

void emitRefreshChats() {
_socket!.emit("join");
);
}

void connectSocket() {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: v_chat_sdk
description: official sdk for v chat this is a complete chat ecosystem use flutter for clint node js and socket io for server side flutter chat v chat sdk
version: 1.0.3
version: 1.0.4
homepage: https://github.com/hatemragab/v_chat_sdk

environment:
Expand Down
4 changes: 0 additions & 4 deletions v_chat_theme_usage

This file was deleted.

0 comments on commit 9b0caf6

Please sign in to comment.