Skip to content

Commit

Permalink
fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ewang001 committed Nov 28, 2023
1 parent 6f886a9 commit 20730c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/newHere1/newHere.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"newHere/Preview Content\"";
DEVELOPMENT_TEAM = W23Y365YR7;
DEVELOPMENT_TEAM = A7X36A78B2;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
4 changes: 3 additions & 1 deletion app/newHere1/newHere/Models/Message.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ class Message {
// var username: String
var location: CLLocation
var messageStr: String
var visibility: String

/// Initialize Message object with provided parameters
init(id:String, user_id: String, location:CLLocation, messageStr: String) {
init(id:String, user_id: String, location:CLLocation, messageStr: String, visibility: String) {
self.id = id
self.user_id = user_id
self.location = location
self.messageStr = messageStr
self.visibility = visibility
}
}
2 changes: 0 additions & 2 deletions app/newHere1/newHere/Utils/api_call.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ func postMessage(user_id: String, text: String, visibility: String, locationData

// Function to get all friends of a user
func getAllUserFriends(userId: String, completion: @escaping (Result<[String: String], Error>) -> Void) {
/// Function to get all friends of a user
func getAllUserFriends(userId: String, completion: @escaping (Result<[String], Error>) -> Void) {
// API URL
let urlString = "https://here-swe.vercel.app/user/\(userId)/friends"

Expand Down

0 comments on commit 20730c1

Please sign in to comment.