File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ function messages(Request $request){
42
42
43
43
function UpdateConversation (Request $ request ){
44
44
45
+ if ($ request ->grpname == null ){
46
+ return json_encode (['error ' => 'Group name is empty ' ]);
47
+ }
48
+
45
49
// checking if user is participant of conversation also fetching conversation_id
46
50
$ tmp = DB ::table ('participants ' )->where (['conversation_id ' => $ request ->group_id ,'user_id ' => Auth ()->user ()->id ])->get ()->toArray ();
47
51
Original file line number Diff line number Diff line change 75
75
</div >
76
76
<p class =" p-3" id =" alertbody" ></p >
77
77
<div class =" modal-footer" >
78
- <button type =" button" id =" alert-ok" class =" btn btn-secondary " data-dismiss =" modal" >Ok</button >
78
+ <button type =" button" id =" alert-ok" class =" btn btn-primary " data-dismiss =" modal" >Ok</button >
79
79
<button type =" button" class =" btn btn-secondary" data-dismiss =" modal" >Close</button >
80
80
</div >
81
81
</div >
You can’t perform that action at this time.
0 commit comments