Commit ae2206e6 authored by Rasmus Rendal's avatar Rasmus Rendal

Added spaces in division

parent 8b1adf98
......@@ -113,7 +113,7 @@ impl Message {
pub fn parse_room_message(roomid: String, msg: &JsonValue) -> Message {
let sender = msg["sender"].as_str().unwrap_or("");
let timestamp = msg["origin_server_ts"].as_i64().unwrap_or(0)/1000;
let timestamp = msg["origin_server_ts"].as_i64().unwrap_or(0) / 1000;
let server_timestamp: DateTime<Local> = Local.timestamp(timestamp, 0);
let id = msg["event_id"].as_str().unwrap_or("");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment