mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
tiny nits
This commit is contained in:
parent
a62c6d7c56
commit
87133fb51f
|
|
@ -212,7 +212,7 @@ func (s *currentRoomStateStatements) upsertRoomState(
|
||||||
containsURL := false
|
containsURL := false
|
||||||
var content map[string]interface{}
|
var content map[string]interface{}
|
||||||
if json.Unmarshal(event.Content(), &content) != nil {
|
if json.Unmarshal(event.Content(), &content) != nil {
|
||||||
// Set containsURL = true if url is present
|
// Set containsURL to true if url is present
|
||||||
_, containsURL = content["url"]
|
_, containsURL = content["url"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,11 @@ CREATE TABLE IF NOT EXISTS syncapi_output_room_events (
|
||||||
room_id TEXT NOT NULL,
|
room_id TEXT NOT NULL,
|
||||||
-- The JSON for the event. Stored as TEXT because this should be valid UTF-8.
|
-- The JSON for the event. Stored as TEXT because this should be valid UTF-8.
|
||||||
event_json TEXT NOT NULL,
|
event_json TEXT NOT NULL,
|
||||||
-- The event type e.g 'm.room.member'
|
-- The event type e.g 'm.room.member'.
|
||||||
type TEXT NOT NULL,
|
type TEXT NOT NULL,
|
||||||
-- The 'sender' property of the event.
|
-- The 'sender' property of the event.
|
||||||
sender TEXT NOT NULL,
|
sender TEXT NOT NULL,
|
||||||
-- true if the event content contains a url key
|
-- true if the event content contains a url key.
|
||||||
contains_url BOOL NOT NULL,
|
contains_url BOOL NOT NULL,
|
||||||
-- A list of event IDs which represent a delta of added/removed room state. This can be NULL
|
-- A list of event IDs which represent a delta of added/removed room state. This can be NULL
|
||||||
-- if there is no delta.
|
-- if there is no delta.
|
||||||
|
|
@ -231,7 +231,7 @@ func (s *outputRoomEventsStatements) insertEvent(
|
||||||
containsURL := false
|
containsURL := false
|
||||||
var content map[string]interface{}
|
var content map[string]interface{}
|
||||||
if json.Unmarshal(event.Content(), &content) != nil {
|
if json.Unmarshal(event.Content(), &content) != nil {
|
||||||
// Set containsURL = true if url is present
|
// Set containsURL to true if url is present
|
||||||
_, containsURL = content["url"]
|
_, containsURL = content["url"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue