Compare commits

...

4 Commits

Author SHA1 Message Date
Tulir Asokan bf9bda8b03 Bump version to 0.6.1 2019-09-20 14:44:33 +03:00
Tulir Asokan 489d09a0f6 Bump version to 0.6.1rc2 2019-09-03 00:34:51 +03:00
Tulir Asokan d96356a310 Remove invalid reply fallbacks from edits 2019-09-03 00:33:58 +03:00
Tulir Asokan d3c3912645 Add .gitlab-ci.yml 2019-09-03 00:32:45 +03:00
3 changed files with 41 additions and 2 deletions
+38
View File
@@ -0,0 +1,38 @@
image: docker:stable
stages:
- build
- push
default:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --pull --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
push latest:
stage: push
only:
- master
variables:
GIT_STRATEGY: none
script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:latest
push tag:
stage: push
variables:
GIT_STRATEGY: none
except:
- master
script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
+1 -1
View File
@@ -1,2 +1,2 @@
__version__ = "0.6.1rc1"
__version__ = "0.6.1"
__author__ = "Tulir Asokan <tulir@maunium.net>"
+2 -1
View File
@@ -1703,7 +1703,8 @@ class Portal:
edit_index=prev_edit_msg.edit_index + 1).insert()
return
text, html, _ = await formatter.telegram_to_matrix(evt, source, self.main_intent)
text, html, _ = await formatter.telegram_to_matrix(evt, source, self.main_intent,
no_reply_fallback=True)
editing_msg = DBMessage.get_one_by_tgid(TelegramID(evt.id), tg_space)
if not editing_msg:
self.log.info(f"Didn't find edited message {evt.id}@{tg_space} (src {source.tgid}) "